[Bug 5397] New: With evolve, hg commit -i crashes on an empty repo

bugzilla at mercurial-scm.org bugzilla at mercurial-scm.org
Fri Oct 7 11:34:24 UTC 2016


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

            Bug ID: 5397
           Summary: With evolve, hg commit -i crashes on an empty repo
           Product: Mercurial
           Version: default branch
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: evolution
          Assignee: bugzilla at selenic.com
          Reporter: arcppzju+hgbug at gmail.com
                CC: mercurial-devel at selenic.com,
                    pierre-yves.david at ens-lyon.org

% hg init repo; cd repo;
% HGRCPATH= hg commit -i --config 'ui.username=A <a at b.com>' --config
'extensions.evolve=' --trace
no changes to record
Traceback (most recent call last):
  File "/home/quark/clowncopter/mercurial/dispatch.py", line 208, in
_runcatchfunc
    return _dispatch(req)
  File "/home/quark/clowncopter/mercurial/dispatch.py", line 910, in _dispatch
    cmdpats, cmdoptions)
  File "/home/quark/clowncopter/mercurial/dispatch.py", line 653, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/home/quark/clowncopter/mercurial/dispatch.py", line 918, in
_runcommand
    return cmdfunc()
  File "/home/quark/clowncopter/mercurial/dispatch.py", line 907, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/home/quark/clowncopter/mercurial/util.py", line 1035, in check
    return func(*args, **kwargs)
  File "/home/quark/clowncopter/mercurial/extensions.py", line 220, in closure
    return func(*(args + a), **kw)
  File "/home/quark/clowncopter/mercurial/util.py", line 1035, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/hgext/evolve.py", line 2849, in
commitwrapper
    new = repo['-1']
  File "/home/quark/clowncopter/mercurial/localrepo.py", line 534, in
__getitem__
    return context.changectx(self, changeid)
  File "/home/quark/clowncopter/mercurial/context.py", line 514, in __init__
    _("unknown revision '%s'") % changeid)
RepoLookupError: unknown revision '-1'
abort: unknown revision '-1'!

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


More information about the Mercurial-devel mailing list