narrow: use merge.ACTION_GET instead of duplicating 'g' constant
authorMartin von Zweigbergk <martinvonz@google.com>
Sun, 06 Jan 2019 23:37:13 -0800
changeset 41177 5838afea8213
parent 41176 4475322b7533
child 41178 53327bfbf35d
narrow: use merge.ACTION_GET instead of duplicating 'g' constant As suggested by Yuya. Differential Revision: https://phab.mercurial-scm.org/D5512
mercurial/narrowspec.py
--- a/mercurial/narrowspec.py	Mon Jan 07 00:37:46 2019 -0800
+++ b/mercurial/narrowspec.py	Sun Jan 06 23:37:13 2019 -0800
@@ -251,7 +251,7 @@
 
 def _writeaddedfiles(repo, pctx, files):
     actions = merge.emptyactions()
-    addgaction = actions['g'].append
+    addgaction = actions[merge.ACTION_GET].append
     mf = repo['.'].manifest()
     for f in files:
         if not repo.wvfs.exists(f):