Patchwork D5512: narrow: use merge.ACTION_GET instead of duplicating 'g' constant

login
register
mail settings
Submitter phabricator
Date Jan. 7, 2019, 7:03 p.m.
Message ID <7c24d2492ae4006f7e1e08bb947ea506@localhost.localdomain>
Download mbox | patch
Permalink /patch/37541/
State Not Applicable
Headers show

Comments

phabricator - Jan. 7, 2019, 7:03 p.m.
martinvonz updated this revision to Diff 13061.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5512?vs=13034&id=13061

REVISION DETAIL
  https://phab.mercurial-scm.org/D5512

AFFECTED FILES
  mercurial/narrowspec.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py
--- a/mercurial/narrowspec.py
+++ b/mercurial/narrowspec.py
@@ -258,7 +258,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):