[Bug 3937] New: hg rebase --collapse incorrect documentation or implementation

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri May 17 16:15:42 CDT 2013


http://bz.selenic.com/show_bug.cgi?id=3937

          Priority: normal
            Bug ID: 3937
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg rebase --collapse incorrect documentation or
                    implementation
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: colanderman at gmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.4.2
         Component: rebase
           Product: Mercurial

The help for rebase claims:

    --collapse          collapse the rebased changesets

Presumably, when -s SRC is supplied, the "rebased changesets" are SRC and its
descendants (otherwise the documentation is incorrect).

However, if SRC has ancestors not in common with those of the destination
changeset, (say SRC is a merge), SRC's ancestors are *also* collapsed.

This is wholly unexpected, as the entire point of using -s instead of -b is to
leave ancestors untouched.

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


More information about the Mercurial-devel mailing list