D5512: narrow: use merge.ACTION_GET instead of duplicating 'g' constant
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Jan 7 19:03:18 UTC 2019
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
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):
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list