0
After checking out a repository, I want to revert it to the oldest version. Is there a way to do it? Anything short of running
svn log | grep '|' > log
(I have to do this for multiple folders). And then getting the first word of the last line and then removing the 'r' and then converting it to an integer. And this assumes that no commit messages have '|' in them, which I guess is a safe assumption, but isn't "correct", as such.
Note: I know how to check out out a specific revision number.
Running svn revert ./*
within the directory didn't work either. After doing that, when I ran svn up
, it said "At revision __" (latest revision). Running svn co -r
works fine
I am confused. Why can't you just checkout a specific version number? – Zoredache – 2013-08-06T01:16:45.483
I can. But I need to do this for around 19 folders, so I'd have to run 'svn log', wait for the result, then find the last number, and then checkout that revision.
revert
seems to be what I'm looking for, but it isn't working, for some reason – notablytipsy – 2013-08-06T08:59:43.1871
@asymptotically:
– mthomas – 2013-08-06T20:25:35.080revert
actually undoes local changes made to the working: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.revert.htmlSo if I checkout the lastest revision and
revert
, it doesn't do anything? Oh ... – notablytipsy – 2013-08-07T05:27:01.377