• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: subversion: svn copy WC URL fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subversion: svn copy WC URL fails


  • Subject: Re: subversion: svn copy WC URL fails
  • From: Andreas Grosam <email@hidden>
  • Date: Wed, 17 Mar 2010 09:51:48 +0100



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:
svn copy -m “message" MyWorkingCopy file:///var/svn/repos/myproject/tags/Demo-v1.0.1/

—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):
$ svn copy near.txt file:///var/svn/repos/test/far-away.txt -m "Remote copy." 
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 copy -m "test" AGC file:///var/svn/repos/MyProject/Applications/tags/Test
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 
file:///var/svn/repos/MyProject/AGC/trunk 
to file:///var/svn/repos/MyProject/Applications/tags/Test

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: subversion: svn copy WC URL fails
      • From: Jeremy Pereira <email@hidden>
References: 
 >subversion: svn copy WC URL fails (From: Andreas Grosam <email@hidden>)
 >Re: subversion: svn copy WC URL fails (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Why can't I Run > Fix?
  • Next by Date: .xcdatamodel and subversion
  • Previous by thread: Re: subversion: svn copy WC URL fails
  • Next by thread: Re: subversion: svn copy WC URL fails
  • Index(es):
    • Date
    • Thread