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

Re: Help or suggestions on porting to subversion

From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Thu, 11 Nov 2010 19:00:01 -0600

On Nov 11, 2010, at 18:33, San Martino wrote:

> $ svn mkdir file:///home/x/repo/tag/change001/
> $ svn copy --parents file:///home/x/repo/trunk/test/java_imports
> file:///home/x/repo/tag/change001/
> $ svn ls file:///home/x/repo/tag/change001/
> java_imports
>
> From the help "svn copy --parents" should create "some" missing
> directories..doesn't it?
> Do you have any idea why I don't see any directories in the repository
> under change001?

You do see a directory under change001: the java_imports directory you told it to copy there. What did you expect to see instead?

If you wanted it to be in a "test" directory then you should presumably instead type:

$ svn copy --parents file:///home/x/repo/trunk/test/java_imports file:///home/x/repo/tag/change001/test/

or maybe:

$ svn copy --parents file:///home/x/repo/trunk/test/java_imports file:///home/x/repo/tag/change001/test/java_imports

You probably don't need to (and in fact shouldn't) "svn mkdir" the change001 directory first.

Usually, when you want to tag something, you just copy the entire trunk, i.e.:

$ svn copy file:///home/x/repo/trunk file:///home/x/repo/tag/change001
Received on 2010-11-12 02:00:45 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.