On Mon, Oct 02, 2006 at 10:36:05PM +0200, Martin Furter wrote:
>
>
> On Mon, 2 Oct 2006, Vlad Skvortsov wrote:
>
> >I still don't see a need for inherited properties here though. Given that
> >pre-commit hook ensures keywords are properly set up, this boils down to a
> >configuration problem. And why not use something as simple as:
> >
> >[autoprops-set-freebsd]
> >FreeBSD = %r
> >
> >[repository-freebsd]
> ># Any of these URLs match.
> >url = https://svn.freebsd.org/
> >url = svn://svn-freebsd.lan/
> ># ... in conjunction with any of these paths within repository.
> >path = /main
> >path = /another-subtree/project-a
> ># Use this autoprops setting for the match.
> >autoprops = autoprops-set-freebsd
> >
> >The problem here is that pre-commit hook and clients' autoprops settings
> >need to be kept in sync. The proper way to solve this for a long term
> >seems to be to configure that on server side and let clients discover the
> >settings.
> >
> >However, in the meanwhile it is possible to solve the problem at hand
> >without both iprops and "server-side autoprops".
>
> Why not extend the format of the svn:keywords property?
>
> F.ex. could a line that starts with a word followed by a '=' define and
> enable a new keyword:
>
> svn ps svn:keywords "URL Author Date
> FreeBSD=%b %r %d %a" foo.c
>
> That should be compatible with existing values of that property, and the
> property has to be set anyway.
>
> The only problem I see here is that each file can have a different format
> of for the keyword, but a pre-commit hook could check that.
>
> Just thinking out loud...
Oh, you mean something like that, right? :)
http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=112080
As a matter of fact, I've updated this patch for 1.4.0, it's up at
http://devel.ringlet.net/devel/subversion/
And yes, I know that this is not really a good approach, and that each
client binary wants to be patched (not "needs", since nothing will
break, just the keywords won't be expanded), but still - it does what
I need right now for my personal repository, until a better solution
comes along.
G'luck,
Peter
--
Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
No language can express every thought unambiguously, least of all this one.
- application/pgp-signature attachment: stored
Received on Fri Oct 20 17:05:52 2006