Re: SVN keywords substitution
Vincent Lefevre <[email protected]> Fri, 1 Sep 2006 09:17:22 +0200
| Newsgroups | gmane.os.opendarwin.darwinports |
|---|---|
| Message-ID | <[email protected]> |
On 2006-09-01 15:30:19 +1000, Charlie Allom wrote: > On Fri, Sep 01, 2006 at 01:51:24AM +0200, Vincent Lefevre wrote: > > Concerning the files under the dports directory, I'd say we should > > do that on the Portfiles (as it was the case under CVS), but not on > > the patches. >=20 > this isn't very nice.. >=20 > turns out (afaict) to get $Id$ working, you will need to set these > under ~/.subversion/config: >=20 > enable-auto-props =3D yes > [auto-props] > Portfile =3D svn:keywords Id > <..other things?..> >=20 > EVERY developer will need to set this to make it worthwhile! >=20 > unless I'm missing something with svn here, can someone else chime in? The developers don't need to use auto-props. They can also do the following to add a Portfile: svn add Portfile svn ps svn:keywords Id Portfile svn ci Portfile The auto-prop is just a rule so that the "svn ps ..." line is automatically performed when doing the "svn add ...". If they forget to add the Id keyword, they can still do it later, or some other developer can do it, or a script can fix it (just like a script updates the PortIndex file); the svn:keywords is versioned, like all non-revision properties. --=20 Vincent Lef=E8vre <[email protected]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA