Mercurial > public > mercurial-scm > hg-stable
diff hgext/remotefilelog/fileserverclient.py @ 40560:fc2766860796
remotefilelog: consolidate and rename on-disk store requirement
The value of this constant appeared in too many places. While we're
here, rename it to be more consistent with our naming conventions for
experimental functionality.
Differential Revision: https://phab.mercurial-scm.org/D5128
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 16 Oct 2018 17:02:48 -0400 |
parents | ed19958dbf5d |
children | 466dd4d70bff |
line wrap: on
line diff
--- a/hgext/remotefilelog/fileserverclient.py Tue Oct 16 17:30:47 2018 -0400 +++ b/hgext/remotefilelog/fileserverclient.py Tue Oct 16 17:02:48 2018 -0400 @@ -83,7 +83,8 @@ return if not util.safehasattr(self, '_localrepo'): return - if constants.REQUIREMENT not in self._localrepo.requirements: + if (constants.SHALLOWREPO_REQUIREMENT + not in self._localrepo.requirements): return bundlecaps = opts.get('bundlecaps')