12

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?

Kuntal Shaw
  • 1,355
  • 12
  • 14
jww
  • 97,681
  • 90
  • 411
  • 885

1 Answers1

31

Use svn update -r <old revision number>

Kuntal Shaw
  • 1,355
  • 12
  • 14
  • 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. – jww Aug 06 '15 at 12:38
  • seems like it does not update the external link – Liu Hao Jan 29 '23 at 07:58