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

Revert a Specific Revision from Main Trunk to a Revision from a Branch

From: Evan J <maps.this.address_at_gmail.com>
Date: Thu, 3 May 2018 19:21:12 -0400

Here is a scenario I am working with:

I have a trunk with several revisions that are committed after the branch
is created. Let's assume the trunk is currently at revision 140. And let's
assume the branch was created from the trunk from revision 100, and
currently the HEAD revision in that branch is 136.

What do I need to do to merge up to a specific revision from the branch,
e.g. 120 (not the latest -- 136), into the main trunk that contains an
up-to some older revision, say, 117 -- not the latest (the three revisions
from 118 - 120 are assumed to be commits from the branch)? What I am
basically planning to do is to update the trunk to a specific revision from
the branch, and discard all the other changes that have been made to the
trunk.

Does reverting the local copy of trunk to revision 117 and merging it to
that specific branch revision (in this case, 120) work, or should I revert
the trunk to pre-branch creation (in this case, 100), then merge the branch
(revision 120) into the trunk?
Received on 2018-05-04 01:21:19 CEST

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.