Le 9 nov. 05, à 08:33, David Crossley a écrit :
...Uh'oh i see that someone has deleted branches/BRANCH_2_1_X/forrest.properties
so i need to get that back. Can someone please explain how to find
out when that file was removed from SVN. I tried searching my local
mail archives for [EMAIL PROTECTED] but cannot find it...

With svn log you can see when it was deleted:

cd BRANCH_2_1_X
svn log --verbose -r {2005-08-01}:{2005-12-31}

Shows:
r322479 | cziegeler | 2005-10-16 17:15:04 +0200 (Sun, 16 Oct 2005) | 3 lines
   D /cocoon/branches/BRANCH_2_1_X/forrest.properties

And then you can restore the file (*including* its history, thanks SVN!) with

svn copy --revision 322478 https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/ forrest.properties .

using the previous revision number, where the file was still there.

I haven't commited the recovered file, in case you just need it it temporarily you can get it with the above command.

There's a good explanation at http://svnbook.red-bean.com/en/1.0/svn-book.html#svn-ch-4-sect-4.3

-Bertrand



Reply via email to