Reputation: 28345
I'm trying to update to an old revision, but I'm getting:
$ svn update -r126
svn: Target path does not exist
A simple update works fine. Also, update to revision 126 works on other computers, just in mine not.
Any idea what can be wrong here?
Upvotes: 8
Views: 5044
Reputation: 34408
This could mean that you're working in a directory that does not exist in revision 126. Try
svn info
to find out the server URL for the path you're working in, then you can try either
svn ls -r 126 http://the-URL-from-info/your/path
svn ls http://the-URL-from-info/your/path@126
to check that the path existed in revision 126. Here @126
is a peg revision - it's instructing SVN to use that path in the filesystem tree from revision 126 as opposed to the current directory as it existed in revision 126.
Chances are this all means that you're actually working on a branch that didn't exist in revision 126. You may need to svn switch
back to your trunk path where revision 126 works, then update.
Upvotes: 7