List Info

Thread: Re: svn: how do i revert a commit?




Re: svn: how do i revert a commit?
country flaguser name
Switzerland
2007-02-26 05:33:41
Jörn Nettingsmeier schrieb:
> 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?

I don't think so - I guess that would contradict the
versioning
principles. You can't go backwards in time 

Maybe the simpliest way is to

svn export -r
cp over working copy
svn commit

-- Andreas


------------------------------------------------------------
---------
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 )