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

RE: Updating WC of branch to before the branch was made

From: Bob Archer <bob.archer_at_amsi.com>
Date: Tue, 28 Apr 2009 12:51:05 -0400

Seems a little chicken and egg to me. You want to revert to revision 2
in your branch yet your branch didn't exist in revision 2.


I guess the question is, what is the end result you are wanting to get
to? Do you want to remove r3 from your branch? If so, you should be able
to reverse merge it out I think.


If you want to change your branch so that is actually started at r2 you
could always create yourself a patch from r4 to head in your branch,
then delete the branch, recreate it from r2 and then apply the patch.






From: Tom Anderl [mailto:tom.anderl_at_impinj.com]
Sent: Tuesday, April 28, 2009 12:42 PM
To: users_at_subversion.tigris.org
Subject: Updating WC of branch to before the branch was made


I have a WC of a branch and I would like to roll it back to a revision
that was before the branch was created. In the diagram below, I have
checked out revision 8, and I would like to roll back my working copy to
revision 2.




When I do an svn log, it follows the copy back in time, so I figured I
could just do an svn update -r 2. Unfortunately, that gives me the

message that "Target path does not exist".


After looking into this a bit, I think what's going on is that when I do
that update, svn is first revving the repository to revision 2, then
looking for my path. Since my branch didn't exist back at revision 2,
it can't find my path. What I would like is for svn to resolve the path
to the files first and then rev the files back to their state at
revision 2. I looked into peg revisions and that looked promising, but
I couldn't figure out how to use pegging when updating.


One solution I've found is to do an svn switch of my WC back to the
trunk and then update back to revision 2, but it seems like I shouldn't
have to do that extra step. Anyone know of any other solution?


There was a thread a while back that asked what I believe is the same
question I have, but it didn't come to a solution:




To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-28 18:52:07 CEST

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