Update to a particular revision in SVN?
Asked Answered
C

1

13

I performed an svn co -r XXX .... I deleted a file and then [accidentally] performed svn up. That updated to HEAD, so I lost my changes at XXX.

Is it possible to perform an update against a particular revision? If so, how?

Related, it is possible to undo the update to HEAD so I go back to XXX + local revisions?

Calico answered 6/8, 2015 at 5:19 Comment(0)
D
33

Use svn update -r <old revision number>

Distribution answered 6/8, 2015 at 10:37 Comment(2)
Damn... it works. And the man page does not list -r as an argument to update (I checked before asking)... I also had to manually cp xxx.ccp.min xxx.cpp, but that was easy enough.Calico
seems like it does not update the external linkVassalage

© 2022 - 2024 — McMap. All rights reserved.