[Bug 5191] New: split crashes on empty commit

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Apr 5 21:06:01 UTC 2016


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

            Bug ID: 5191
           Summary: split crashes on empty commit
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzilla at selenic.com
          Reporter: martinvonz at google.com
                CC: mercurial-devel at selenic.com,
                    pierre-yves.david at ens-lyon.org

I accidentally ran "hg split" on an empty commit, which resulted in a stack
trace ending in:

File "/usr/lib/python2.7/dist-packages/hgext/evolve.py", line 2784, in cmdsplit
    tip = repo[newcommits[-1]]
IndexError: list index out of range

Can be reproduced by:

hg init
hg branch new-branch
hg ci -m new-branch
hg split

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


More information about the Mercurial-devel mailing list