# HG changeset patch # User Pierre-Yves David # Date 1533170535 -7200 # Node ID e709e3817d7e54408a8b6746f8e9218603e7e24c # Parent a50b7e3d86c2b6ede8cb52fb085c1db2d5d708ad# Parent f3713d41b85bb1a834b0c6cf967a02321c2f2c09 test-compat: merge mercurial-4.6 into mercurial-4.5 diff -r f3713d41b85b -r e709e3817d7e hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Thu Aug 02 01:58:44 2018 +0200 +++ b/hgext3rd/evolve/__init__.py Thu Aug 02 02:42:15 2018 +0200 @@ -1409,9 +1409,10 @@ cmdutil.afterresolvedstates.append(afterresolved) cmdutil.afterresolvedstates.append(grabresolved) - statedata = ('evolve', cmdutil.fileexistspredicate('evolvestate'), - _evolvemessage) - cmdutil.STATES = (statedata, ) + cmdutil.STATES + if util.safehasattr(cmdutil, 'STATES'): + statedata = ('evolve', cmdutil.fileexistspredicate('evolvestate'), + _evolvemessage) + cmdutil.STATES = (statedata, ) + cmdutil.STATES @eh.wrapfunction(hg, 'clean') def clean(orig, repo, *args, **kwargs): diff -r f3713d41b85b -r e709e3817d7e hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Thu Aug 02 01:58:44 2018 +0200 +++ b/hgext3rd/evolve/evolvecmd.py Thu Aug 02 02:42:15 2018 +0200 @@ -707,7 +707,10 @@ " content-divergent changesets.\nHG: Resolve conflicts" " in commit messages to continue.\n\n") - resolveddesc = ui.edit(prefixes + desc, ui.username(), action='desc') + if 5 <= len(ui.edit.im_func.func_defaults): # <= hg-4.3 + resolveddesc = ui.edit(prefixes + desc, ui.username(), action='desc') + else: + resolveddesc = ui.edit(prefixes + desc, ui.username()) # make sure we remove the prefixes part from final commit message if prefixes in resolveddesc: # hack, we should find something better diff -r f3713d41b85b -r e709e3817d7e hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Thu Aug 02 01:58:44 2018 +0200 +++ b/hgext3rd/topic/__init__.py Thu Aug 02 02:42:15 2018 +0200 @@ -489,7 +489,7 @@ ui.status('active topic %r is now empty\n' % ct) if ('phase' in getattr(tr, 'names', ()) or any(n.startswith('push-response') - for n in getattr(tr, 'names', ()))): + for n in getattr(tr, 'names', ()))): ui.status(_("(use 'hg topic --clear' to clear it if needed)\n")) hint = _("(see 'hg help topics' for more information)\n") if ctwasempty and not empty: