[Bug 5381] New: Ability to move list of revisions from one branch to another

bugzilla at mercurial-scm.org bugzilla at mercurial-scm.org
Mon Sep 26 19:31:46 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5381

            Bug ID: 5381
           Summary: Ability to move list of revisions from one branch to
                    another
           Product: Mercurial
           Version: 3.9.1
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: convert
          Assignee: bugzilla at selenic.com
          Reporter: cowwoc at bbs.darktech.org
                CC: durin42 at gmail.com, mercurial-devel at selenic.com

When converting a Mercurial repository to Git (not my idea, don't shoot the
messenger) I ran across this issue:
https://github.com/frej/fast-export/issues/9

In my case, it turns out that a branch had two heads. One head was marked as
"closed" while the other continued development. In order to please the Git
gods, I wanted to rename all revisions on the "closed" head to a different
name.

--branchmap allows move all revisions on a particular branch to a different
branch, but I need to only move a subset of the revisions.

For example, given:

@
|
o  __
|  /
o o
|/
o

I want to rename all revisions on the right (closed) branch without touching
the left branch.

http://stackoverflow.com/a/4673148/14731 provides a partial solution but "hg
rebase" requires the creation of a dummy commit containing the new branch new
on top of which we will rebase.

My request is to end up with the exact same number of commits, containing the
exact same metadata except for the branch name.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list