changeset 41177:5838afea8213

narrow: use merge.ACTION_GET instead of duplicating 'g' constant As suggested by Yuya. Differential Revision: https://phab.mercurial-scm.org/D5512
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 06 Jan 2019 23:37:13 -0800
parents 4475322b7533
children 53327bfbf35d
files mercurial/narrowspec.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):