[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: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-22 00:57:19 CEST

On May 21, 2006, at 23:44, 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).

I don't know darcs. Does "svn up -r 3" do what you want? You can "svn
up -r 3" only the specific files or directories you want to back-date
without affecting the rest of the project. Just tell it which files.
"svn up -r 3 foo bar baz" Read about mixed-revision working copies:

http://svnbook.red-bean.com/en/1.2/svn.basic.in-
action.html#svn.basic.in-action.mixedrevs

(Please forgive my mail client if it screws up the long URL.)

> Right now I just "svn diff" and apply the reverse patch, 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.
>
> 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).

If you did in fact want to make the changes such that you could
commit them, then Subversion does support a much more-intelligigent
solution than svn diff and a manual patch, namely svn merge. See
especially the section about undoing changes:

http://svnbook.red-bean.com/en/1.2/
svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.undo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 22 00:58:29 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.