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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Jan 10 14:19:33 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5838afea8213: narrow: use merge.ACTION_GET instead of duplicating 'g' 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

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):



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


More information about the Mercurial-devel mailing list