# HG changeset patch # User Martin von Zweigbergk # Date 2019-01-07 07:37:13 # Node ID 5838afea82138644c8d13a0157660bacc3f5de32 # Parent 4475322b7533d1798c8b3d338542b08a5859817d narrow: use merge.ACTION_GET instead of duplicating 'g' constant As suggested by Yuya. Differential Revision: https://phab.mercurial-scm.org/D5512 diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py --- a/mercurial/narrowspec.py +++ b/mercurial/narrowspec.py @@ -251,7 +251,7 @@ def _deletecleanfiles(repo, files): 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):