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

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

Comments

phabricator - Jan. 10, 2019, 7:19 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5838afea8213: narrow: use merge.ACTION_GET instead of duplicating &#039;g&#039; constant (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/narrowspec.py

CHANGE DETAILS




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

Patch

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