简体   繁体   中英

Subversion will not update to old revision

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM