On Tue, 11 Nov 2008, Ryan Schmidt wrote:
> On Nov 11, 2008, at 09:30, Robert P. J. Day wrote:
>
> > having figured out what i was doing wrong yesterday, i got
> > svncopy.pl to make a copy of my trunk using "--pin-externals",
> > but i got a nasty shock when i looked at the way the branch
> > was created.
> >
> > as is my pattern when creating a branch from the trunk, i
> > used:
> >
> > $ svncopy.pl --pin-externals .../trunk .../branches/mybranch
> >
> > what i expected to get in the repository was:
> >
> > .../repo/branches/mybranch/<content>
> >
> > what i got instead was:
> >
> > .../repo/branches/mybranch/trunk/<content>
> > ^^^^^ ?
> >
> > why do i have that extra "trunk" directory level?
>
> Hmm. I haven't used svncopy.pl but their readme does indeed show that extra
> "trunk" level. Not sure why they thought this was a good idea.
>
> http://svn.collab.net/repos/svn/trunk/contrib/client-side/svncopy/svncopy.README
i do see that the README explains that extra subdirectory layer. i
had just assumed from the script built-in help that it would emulate
"svn copy". now i know better. next time, i'll RTFM.
so i guess the obvious solution is to simply:
$ svncopy.pl --pin-externals \
http://.../repo/trunk/{subdir1,subdir2,.....} \
http://.../repo/branches/mybranch
and that should take care of it.
rday
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-12 00:57:13 CET