[Bug 5573] New: "AttributeError: 'changectx' object has no attribute 'split'" when pruning

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Mon May 22 06:34:27 UTC 2017


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

            Bug ID: 5573
           Summary: "AttributeError: 'changectx' object has no attribute
                    'split'" when pruning
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: byron at glob.com.au
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org

i hit an evolve bug when trying to prune a commit.
mercurial v4.2, hg-evolve v6.2.0.

> hgdev/vct$ hg show work
> o  caa7a (@) mozautomation: rework backout parser (bug 1365860) r=gps
> : @  e68a2 pash: rewrite hg command parsing (bug 1353499); r?glob, claudijd
> : x  2e51c pash: avoid re-assigning args variable (bug 1353499); r?glob
> :/
> o  36909 (hg_1_6+_updates) bug 666870 - Update Mozilla templates to work with new Mercurial templater. r=ted
> |
> ~
> hgdev/vct$ hg prune e68a2
> 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
> ** unknown exception encountered, please report by visiting
> ** https://mercurial-scm.org/wiki/BugTracker
> ** Python 2.7.13 (default, Feb 20 2017, 19:37:36) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
> ** Mercurial Distributed SCM (version 4.2)
> ** Extensions loaded: evolve
> Traceback (most recent call last):
>   File "/Users/byron/Dropbox/dev/vct/path-override/hg", line 45, in <module>
>     mercurial.dispatch.run()
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 83, in run
>     status = (dispatch(req) or 0) & 255
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 164, in dispatch
>     ret = _runcatch(req)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 295, in _runcatch
>     return _callcatch(ui, _runcatchfunc)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 303, in _callcatch
>     return scmutil.callcatch(ui, func)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", line 146, in callcatch
>     return func()
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 285, in _runcatchfunc
>     return _dispatch(req)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 911, in _dispatch
>     cmdpats, cmdoptions)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 648, in runcommand
>     ret = _runcommand(ui, options, cmd, d)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 919, in _runcommand
>     return cmdfunc()
>   File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 908, in <lambda>
>     d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 231, in closure
>     return func(*(args + a), **kw)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/hgext3rd/evolve/__init__.py", line 628, in warnobserrors
>     ret = orig(ui, repo, *args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 231, in closure
>     return func(*(args + a), **kw)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/hgext/mq.py", line 3546, in mqcommand
>     return orig(ui, repo, *args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/hgext3rd/evolve/__init__.py", line 2274, in cmdprune
>     % ui.label(newnode, 'evolve.node'))
>   File "/usr/local/lib/python2.7/site-packages/mercurial/ui.py", line 1444, in label
>     return color.colorlabel(self, msg, label)
>   File "/usr/local/lib/python2.7/site-packages/mercurial/color.py", line 373, in colorlabel
>     for line in msg.split('\n')])
> AttributeError: 'changectx' object has no attribute 'split'

after reverting back to the initial state, i checked out `tip` before pruning
the same node.  this worked:

> hgdev/vct$ hg show work
> o  caa7a (@) mozautomation: rework backout parser (bug 1365860) r=gps
> : @  e68a2 pash: rewrite hg command parsing (bug 1353499); r?glob, claudijd
> : x  2e51c pash: avoid re-assigning args variable (bug 1353499); r?glob
> :/
> o  36909 (hg_1_6+_updates) bug 666870 - Update Mozilla templates to work with new Mercurial templater. r=ted
> |
> ~
> hgdev/vct$ hg co @
> 11 files updated, 0 files merged, 0 files removed, 0 files unresolved
> (activating bookmark @)
> hgdev/vct$ hg prune e68a2
> 1 changesets pruned

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


More information about the Mercurial-devel mailing list