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

Re: "svn unpull"?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-05-22 01:22:43 CEST

On 5/21/2006 5:44 PM, Adam Megacz wrote:
> Does svn have a command similar to darcs' "unpull"?
> That is, if I have a working copy with version 5, I want to put my
> working copy in the state it would be in if version 3 had never been
> checked in (that is, the changes in versions 1,2,4,5). And next time
> I do "svn update" I want to get changeset 3 (since it is still in the
> repository).

You would use svn update; svm merge -r3:2 to get the HEAD revision
without the changes in rev 3.

> Right now I just "svn diff" and apply the reverse patch,

That's equivalent.

but I'm
> afraid of accidentally committing this modification. And diff/patch
> won't handle "unmerging" version 3 from the changes in 4+5 as
> intelligently as svn should be able to.

svn doesn't handle merges as well as it would like to; this is one thing
it doesn't do well.

Duncan Murdoch

> This is really useful when somebody else checks in changes that break
> the project and simply undoing those changes in the repository or
> fixing the breakage is not an option (for policy/seniority/etc
> reasons).
> Thanks,
> - a

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 22 01:24:08 2006

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.