On Mar 17, 2010, at 2:33 AM, Jens Alfke wrote: On Mar 16, 2010, at 4:39 PM, Andreas Grosam wrote: svn copy MyWorkingCopy file:///var/svn/repos/myproject/tags/Demo-v1.0.1/ -m “message"
I get the following error message:
svn: Commit failed (details follow): svn: Source url 'file:///var/svn/repos/myproject/tags/Demo-v1.0.1' is from different repository
Note that it’s calling the file: URL a “source”. That makes me suspect SVN is confused about the source and destination. In particular, I don’t think it’s legal to put flags like “-m” after non-flag arguments. SVN probably thinks you have multiple path arguments, and is treating all but the last one (“message”) as a source.
Try this instead:
—Jens
Thank you for the reply, Jens.
I didn't thought this could be a problem. The original svn book specifically allows this:
svn-book.pdf (page 252): Copy an item in your working copy to a URL in the repository (this is an immediate commit, so you must supply a commit mes- sage): Committed revision 8.
Although, in this example a *file* as source is used, while I have a folder. Copying a file this way, doesn't work either, though.
When I use the syntax as described by you:
svn: Commit failed (details follow): svn: Source url 'file://localhost/var/svn/repos/MyProject/AGC/trunk' is from different repository $ ls AGC Demo3
There is a folder in the repository: /var/svn/repos/MyProject/AGC/trunk from which the working copy AGC has been created.
So, it looks like svn tries to copy from
Which seems logical - if this is the first step in the process of copying a local working copy to a different URL in the repository. When the original (uncommitted) AGC is copied to the destination (URL to URL), then the changes in the AGC working copy will be applied to the AGC-copy in the repository.
But for some reason, it doesn't work. Even though, every WC is updated and committed.
It's strange, because I can successfully copy from URL to URL within the same repository. That is, the command above would work if I would perform it manually.
Andreas |