Mercurial > hg
diff hgext/narrow/narrowchangegroup.py @ 36088:8c31187b6717
narrow: mark requirement as a constant
Differential Revision: https://phab.mercurial-scm.org/D2006
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 02 Feb 2018 10:27:08 -0500 |
parents | a2a6e724d61a |
children | 9445a3141501 |
line wrap: on
line diff
--- a/hgext/narrow/narrowchangegroup.py Fri Feb 02 10:23:23 2018 -0500 +++ b/hgext/narrow/narrowchangegroup.py Fri Feb 02 10:27:08 2018 -0500 @@ -27,7 +27,7 @@ def supportedoutgoingversions(orig, repo): versions = orig(repo) - if narrowrepo.requirement in repo.requirements: + if narrowrepo.REQUIREMENT in repo.requirements: versions.discard('01') versions.discard('02') return versions