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

RE: svn copy question

From: Sander Striker <striker_at_apache.org>
Date: 2003-05-22 10:20:41 CEST

> From: Yanghui Bian [mailto:ybi@vitesse.com]
> Sent: Thursday, May 22, 2003 9:56 AM

> I have the layout below:
> repos/tags
> repos/trunk/westlake
> I checked out westlake in windows D:\test
> $ svn checkout http://p1/repos/trunk/westlake
> Then I did some modification in my local copy D:\test\westlake
> Now I want to copy my local modified copy to the repository.

You can't do that. It sounds to me that you wanted to do this:

$ svn co http://p1/repos/trunk/westlake

...do mods to westlake...

$ svn ci

$ svn cp http://p1/repos/trunk/westlake http://p1/repos/tags/westlake_111

Or, if you want to only have the local mods on the tag (which effectively
would make it a branch):

$ svn cp http://p1/repos/trunk/westlake http://p1/repos/tags/westlake_111
$ svn co http://p1/repos/tags/westlake_111

...do mods to westlake...

$ svn ci

Note that if you already had trunk/westlake checked out, you could switch
it to tags/westlake:

$ svn switch http://p1/repos/tags/westlake_111

> In directory D:\test (it is not revisioned)

What does this mean? That you have an unversioned version of 'westlake'
somewhere else (in D:\test)? You can't copy from an unversioned source.
The only way to get unversioned sources in the repository is through
import (or add on a working copy ofcourse).

> $ svn copy westlake http://p1/repos/tags/westlake_111
> But with the following error:
> svn: Path is not a working copy directory
> svn: 'd:\test' is not a working copy

Probably not what you want, but (and this is not something I would recommend
given the naming of your layout):

$ svn import http://p1/repos/tags westlake westlake_111
> I know that if I checkout the whole trunk then I can run the copy command
> under D:\test\trunk and put the westlake to the tags in repository.

Why aren't you using the 'svn copy URL URL' syntax?
> But the problem is that I have too many other projects under trunk directory.
> It's terrible to checkout them all out. Are there any other way?

I strongly urge you to read the Subversion book: http://svnbook.red-bean.com/.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 22 10:21:31 2003

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

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