[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to reject svn changes?

From: Blair Zajac <blair_at_orcaware.com>
Date: Sat, 15 Mar 2008 12:02:37 -0700

Chris wrote:
> Every once in a while (more often than I care to admin) one of our
> developers does something really boneheaded. They check in changes that
> shouldn't be there.
>
> I'm finding it an enormous pain to back out the changes, particularly if
> then extend across multiple files.

That's really easy to back out. If revision N is the bad commit, then you can use

svn up
svn merge -cN . .
svn commit -m 'revert rN'

If you want to keep in some changes, then you can either do the merge for the
few files you want, or if more files need to be kept, then you can svn revert
the few that shouldn't be reverted.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<blair_at_orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-15 20:03:05 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.