Setting svn:keywords on all Portfile's

Blair Zajac blair at orcaware.com
Fri Oct 27 12:56:03 PDT 2006


Landon Fuller wrote:
> 
> 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.

OK.  Let's just add Id.

> 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' \{\} \;

Running

find -maxdepth 3 -name Portfile | xargs svn propset svn:keywords Id

would be faster.

Regards,
Blair




More information about the macports-dev mailing list