Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion will not update to old revision

Tags:

svn

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?

like image 582
The Student Avatar asked Jan 18 '11 19:01

The Student


1 Answers

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.

like image 181
Rup Avatar answered Sep 22 '22 12:09

Rup