List Info

Thread: svn: how do i revert a commit?




svn: how do i revert a commit?
country flaguser name
Germany
2007-02-26 05:33:44
hi !

i've messed up a css file in a branch. i'd like to revert to
an older 
revision. here's what i did

svn update -r <botched-revision-minus-one> 
lenya/webapp/resources/css/default.css

works. i now have the old and working version in my sandbox.
but how do 
i commit it back? when i say svn diff, the file is not
mentioned (since 
there is no diff, only it's at another revision), and i
can't commit it 
either.

it would be easy to just hand-revert the changes and commit
that, but i 
wonder what that would do to the repository metadata and any
later 
merges... there surely is a way to say, "ditch the last
commit and go 
back one revision for HEAD", right?
(btw, i do have the subversion book, but i can't seem to
find the answer...)

thanks,

jörn


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )