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

Updating WC of branch to before the branch was made

From: Tom Anderl <tom.anderl_at_impinj.com>
Date: Tue, 28 Apr 2009 16:42:29 +0000

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.

1---2---3-*-----5---7
           \
            \-4---6---8

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:

http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=570993

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1965559

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

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