Update to a particular revision in SVN?

jww picture jww · Aug 6, 2015 · Viewed 20k times · Source

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?

Answer

Kuntal Shaw picture Kuntal Shaw · Aug 6, 2015

Use svn update -r <old revision number>