[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svncopy.pl creates extra level of subdirectory?

From: Robert P. J. Day <rpjday_at_crashcourse.ca>
Date: Tue, 11 Nov 2008 18:56:15 -0500 (EST)

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.