Setting svn:keywords on all Portfile's

Landon Fuller landonf at macports.org
Fri Oct 27 12:28:01 PDT 2006


On Oct 26, 2006, at 20:04, Ryan Schmidt wrote:

> On Oct 26, 2006, at 19:57, Blair Zajac wrote:
>
>> It appears that in CVS we have automatic keyword substitution on  
>> $Id$, for example:
>>
>> $ head editors/xemacs/Portfile
>> # $Id: Portfile,v 1.24 2006/06/09 23:18:02 blair Exp $
>>
>> However, this isn't being updated in svn since the svn:keywords is  
>> not set.  I committed to editors/xemacs/Portfile yesterday, but  
>> it's still showing the last commit in CVS.
>>
>> I propose setting svn:keywords to 'HeadURL Id LastChangedBy  
>> LastChangedDate LastChangedRevision' on all Portfiles, which will  
>> enable all five keywords that svn supports.

We currently only use $Id$. I'd prefer to not add more keywords to  
the list.

>>
>> Any objections to this?
>
> I agree that we should do a one-time sweep to set svn:keywords on  
> all portfiles. Not sure if all those keywords are necessary...  
> Whatever list of keywords we decide on, we should also install a  
> pre-commit hook that rejects the commit of any portfile that does  
> not contain these keywords. This came up before:
>
> http://www.opendarwin.org/pipermail/darwinports/2006-September/ 
> 035442.html
>
> Charlie and Kevin: has any progress been made on the Python script?  
> If not, I'd be happy to code up something simple that should do the  
> trick, but it wouldn't be in Python. My preferred language is PHP,  
> but if that's not acceptable I could try to do it in Bash or Perl.

I'd run this here if I could commit from this machine:
	cd dports
	find . -maxdepth 3 -name Portfile -exec svn propset svn:keywords  
'Id' \{\} \;

-landonf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20061027/ea71dfc6/PGP.bin


More information about the macports-dev mailing list