# HG changeset patch # User Pierre-Yves David # Date 1495099763 -7200 # Node ID 31255706b591257923b94d654103f13f7b35b57b # Parent 4ff849709feac8c22e494807c72ee8bef285ed0b obshistory: import 'node' as 'nodemod' This simplify the next changeset. diff --git a/hgext3rd/evolve/obshistory.py b/hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py +++ b/hgext3rd/evolve/obshistory.py @@ -8,7 +8,7 @@ # GNU General Public License version 2 or any later version. from mercurial import ( - node + node as nodemod, ) def _debugobshistorysingle(fm, repo, revs): @@ -63,7 +63,7 @@ fm.plain('\n') def _debugobshistorydisplaymissingctx(fm, nodewithoutctx): - hexnode = node.short(nodewithoutctx) + hexnode = nodemod.short(nodewithoutctx) fm.startitem() fm.write('debugobshistory.node', '%s', hexnode, label="evolve.node evolve.missing_change_ctx") @@ -97,7 +97,7 @@ if len(succnodes) > 0: fm.plain(' as ') - shortsnodes = (node.short(succnode) for succnode in sorted(succnodes)) + shortsnodes = (nodemod.short(succnode) for succnode in sorted(succnodes)) nodes = fm.formatlist(shortsnodes, 'debugobshistory.succnodes', sep=', ') fm.write('debugobshistory.succnodes', '%s', nodes, label="evolve.node")