[Kde-scm-interest] New message: Re: svn2git for Boost
Thiago Macieira
thiago at kde.org
Thu Jan 3 19:33:15 UTC 2013
On quinta-feira, 3 de janeiro de 2013 11.50.00, Dave Abrahams wrote:
> > ------------------------------------------------------------------------
> > r757128 | mueller | 2008-01-04 07:09:11 -0200 (Fri, 04 Jan 2008) | 2 lines
> >
> > Changed paths:
> > A /branches/KDE/4.0 (from /trunk/KDE:757127)
> >
> > Creating KDE 4.0 branch
> >
> > ------------------------------------------------------------------------
> >
> > As you can see, there's no file path changing that would match
> > /branches/KDE/(\d.\d)/kdelibs.
>
> Surely when there are files in $SVNROOT/trunk/KDE/kdelibs and you do
>
> svn cp $SVNROOT/trunk/KDE $SVNROOT/branches/KDE/4.0
>
> it changes files whose path *begins* with a match to
> /branches/KDE/(\d.\d)/kdelibs/. Is it really just about the fact that
> the whole file paths are longer than that, so they don't match the
> regexp?
The fact is that the regexp
/branches/KDE/(\d.\d)/kdelibs/
Does not match a path changed in that change. The tool isn't smart enough to
detect that destination path of the copy is a parent dir of a match (though I
have a vague memory of it auto-recursing in some conditions). That's what the
recurse action is for: it's to cause it to list the path and apply the rules
again.
> Also, am I right to suppose the "recurse" action used to remedy this is:
>
> --8<---------------cut here---------------start------------->8---
> match /(branches|tags)/KDE/[^/]+/$
> action recurse
> end match
> --8<---------------cut here---------------end--------------->8---
>
> in converted/KDE/kdelibs-rules from the KDE ruleset?
Yes. Note the $ at the end, to cause the regexp to stop matching, so that the
rule only applies to when the branching we'd done was parsed.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-scm-interest/attachments/20130103/96871cc8/attachment.sig>
More information about the Kde-scm-interest
mailing list