[Bug 3802] New: traceback during hg rebase --continue

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sun Feb 3 02:33:41 CST 2013


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

          Priority: normal
            Bug ID: 3802
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: traceback during hg rebase --continue
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: pierre-yves.david at logilab.fr
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.5
         Component: rebase
           Product: Mercurial

2a1fac3650a5 introduce a new argument `dest` to updatebookmarks but the
reference is not set in some code path:

> ** Unknown exception encountered with possibly-broken third-party extension crecord
> ** which supports versions unknown of Mercurial.
> ** Please disable crecord and try your action again.
> ** If that fixes the bug please report it to the extension author.
> ** Python 2.7.3 (default, Aug  1 2012, 05:14:39) [GCC 4.6.3]
> ** Mercurial Distributed SCM (version 2.5-rc+60-2a1fac3650a5)
> ** Extensions loaded: color, schemes, convert, rebase, mq, churn, purge, progress, patchbomb, graphlog, record, crecord, hgview, histedit, evolve, perf, extdiff
> Traceback (most recent call last):
>   File "/home/pyves/bin/hg", line 38, in <module>
>     mercurial.dispatch.run()
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 28, in run
>     sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 65, in dispatch
>     return _runcatch(req)
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 88, in _runcatch
>     return _dispatch(req)
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 743, in _dispatch
>     cmdpats, cmdoptions)
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 514, in runcommand
>     ret = _runcommand(ui, options, cmd, d)
>   File "/home/pyves/lib/python/mercurial/extensions.py", line 189, in wrap
>     return wrapper(origfn, *args, **kwargs)
>   File "/home/pyves/lib/python/hgext/color.py", line 394, in colorcmd
>     return orig(ui_, opts, cmd, cmdfunc)
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 833, in _runcommand
>     return checkargs()
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 804, in checkargs
>     return cmdfunc()
>   File "/home/pyves/lib/python/mercurial/dispatch.py", line 740, in <lambda>
>     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
>   File "/home/pyves/lib/python/mercurial/util.py", line 475, in check
>     return func(*args, **kwargs)
>   File "/home/pyves/lib/python/mercurial/extensions.py", line 144, in wrap
>     util.checksignature(origfn), *args, **kwargs)
>   File "/home/pyves/lib/python/mercurial/util.py", line 475, in check
>     return func(*args, **kwargs)
>   File "/home/pyves/lib/python/hgext/mq.py", line 3508, in mqcommand
>     return orig(ui, repo, *args, **kwargs)
>   File "/home/pyves/lib/python/mercurial/util.py", line 475, in check
>     return func(*args, **kwargs)
>   File "/home/pyves/lib/python/mercurial/extensions.py", line 144, in wrap
>     util.checksignature(origfn), *args, **kwargs)
>   File "/home/pyves/lib/python/mercurial/util.py", line 475, in check
>     return func(*args, **kwargs)
>   File "/home/pyves/lib/python/hgext/evolve.py", line 594, in warnobserrors
>     ret = orig(ui, repo, *args, **kwargs)
>   File "/home/pyves/lib/python/mercurial/util.py", line 475, in check
>     return func(*args, **kwargs)
>   File "/home/pyves/lib/python/hgext/rebase.py", line 327, in rebase
>     updatebookmarks(repo, dest, nstate, currentbookmarks)
> UnboundLocalError: local variable 'dest' referenced before assignment

Rebase is left in a bad state

> > hg rebase --abort
> abort: 00changelog.i at b20612afa540: no node!
>

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


More information about the Mercurial-devel mailing list