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

Re: adding something to svn

From: Benjamin Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Fri, 25 Jul 2008 13:01:49 +0200

On Jul 24, 2008, at 22:15, N D wrote:

> Buddy, I have read most of the relevant parts of the manual. :)
> Was stressed out, so perhaps could not frame the question!!
> appologies fr that
> the current question is: m running svn copy file:///trunk
> <url_fr_new_branch>
> whn i do so, i am gettting some error 'the src and the dest do not
> appear from the same repository" even if as the WC is from the svn
> itself.
                   This seems doubtful if you're getting that error

> i have tried using the svn copy URL URL flavour of the command, but
> the svn WC URL is not working.

On Jul 25, 2008, at 12:08, N D wrote:

> es i am using the svn copy WC URL syntax
> in my case wc is inside a dir called trunk
> and the url is a server https://xx.xx.xx.xxx/abc/xyz/
> so i want to commit contents from the local trunk dir to the url i
> mention in the URL part of the command
> you shared this: svn copy wc file:///r:/projects/repos/fxbt/tags/fxbt_1.1.0
> here is wc a keyword :)? stupid queston right :)
> Assuming this folder structure c:/some_dir/trunk and i am one step
> above as u said
> this should work-
> c:/some_dir>svn copy file:// URL_to_commit_the_contents_to
> is there a need to append anyting after file://, like file://trunk?

Yea. No kidding. You can only "svn copy" within a single repository.

# the working copy erv.schemas is part of the repository "ju-erv"
$ svnurl erv.schemas/

# I can't svn copy that working copy into a 'foreign' repository.
$ svn cp erv.schemas svn://oberon/repository/erv.schemas.trunk
svn: Commit failed (details follow):
svn: Source url 'https://zsvn.xxx.xx.xx/svn/ju-erv/ERV/Schemas/trunk'
is from different repository

Depending on what you're trying to accomplish you might consider:

(1) svn export WORKING_COPY WORKING_COPY.exported
     svn import WORKING_COPY.export file://my-local-repo/somewhere

This will get a copy of the sources currently in WORKING_COPY into
your local repo. The new copy will share no history with the old
copy. As far as subversion is concedrned every repository is a
universe unto itself.

(2) svnadmin dump ......
     dumpfilter ....
     svnadmin load ......

With some effort you could get the sources and their history moved
from one repository to another this way. But, again, their would be
no connection between these two copies of the sources.

// Ben

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-25 13:02:25 CEST

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.