##// END OF EJS Templates
merge: rework iteration over mergeresult object in checkpathconflicts()...
merge: rework iteration over mergeresult object in checkpathconflicts() Instead of following pattern: ``` for f, (m, args, msg) in mresult.actions.items(): if m == mergestatemod.ACTION_*: ... elif m == mergestatemod.ACTION_*: ... .... ``` We do: ``` for (f, args, msg) in mresult.getaction((mergestatemod.ACTION_*,)): ... for (f, args, msg) in mresult.getaction((mergestatemod.ACTION_*,)): ... .... ``` This makes code bit easier to understand and prevent iterating over actions which we don't need. Differential Revision: https://phab.mercurial-scm.org/D8884

File last commit:

r43346:2372284d default
r45902:150900a1 default
Show More
__init__.py
4 lines | 106 B | text/x-python | PythonLexer
Pierre-Yves David
hgext: officially turn 'hgext' into a namespace package...
r28450 from __future__ import absolute_import
import pkgutil
Augie Fackler
formatting: blacken the codebase...
r43346
Pierre-Yves David
hgext: officially turn 'hgext' into a namespace package...
r28450 __path__ = pkgutil.extend_path(__path__, __name__)