[Bug 4944] New: rebase -r 'draft()' fails if one draft commit is a child of dest

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sun Nov 8 02:51:47 UTC 2015


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

            Bug ID: 4944
           Summary: rebase -r 'draft()' fails if one draft commit is a
                    child of dest
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: rebase
          Assignee: bugzilla at selenic.com
          Reporter: durham at fb.com
                CC: mercurial-devel at selenic.com

hg rebase -d @ -r 'draft()' exits with "nothing to rebase" if just one draft
commit is already a child of @. I think that one commit should be ignored, and
all other commits get rebased onto @

hg init foo
cd foo
touch a && hg commit -Aqm a
touch b && hg commit -Aqm b
touch c && hg commit -Aqm c
hg up 0
touch x && hg commit -Aqm x
hg log -G -T '{rev} {desc}'
@  3 x
|
| o  2 c
| |
| o  1 b
|/
o  0 a
hg rebase -d 1 -r '2 + 3'
nothing to rebase

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


More information about the Mercurial-devel mailing list