Mercurial > hg
comparison hgext/remotefilelog/fileserverclient.py @ 40509:ed19958dbf5d
remotefilelog: consolidate and rename bundle2 capability
Bonus: we catch a spot where the shallowrepo requirement was being
misused as the bundle2 capability.
Differential Revision: https://phab.mercurial-scm.org/D5127
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 16 Oct 2018 17:30:47 -0400 |
parents | 354acd0dc637 |
children | fc2766860796 |
comparison
equal
deleted
inserted
replaced
40508:354acd0dc637 | 40509:ed19958dbf5d |
---|---|
97 # command. We need to do it this way because bundle1 getbundle | 97 # command. We need to do it this way because bundle1 getbundle |
98 # doesn't provide any other place we can hook in to manipulate | 98 # doesn't provide any other place we can hook in to manipulate |
99 # getbundle args before it goes across the wire. Once we get rid | 99 # getbundle args before it goes across the wire. Once we get rid |
100 # of bundle1, we can use bundle2's _pullbundle2extraprepare to | 100 # of bundle1, we can use bundle2's _pullbundle2extraprepare to |
101 # do this more cleanly. | 101 # do this more cleanly. |
102 bundlecaps.append('remotefilelog') | 102 bundlecaps.append(constants.BUNDLE2_CAPABLITY) |
103 if self._localrepo.includepattern: | 103 if self._localrepo.includepattern: |
104 patterns = '\0'.join(self._localrepo.includepattern) | 104 patterns = '\0'.join(self._localrepo.includepattern) |
105 includecap = "includepattern=" + patterns | 105 includecap = "includepattern=" + patterns |
106 bundlecaps.append(includecap) | 106 bundlecaps.append(includecap) |
107 if self._localrepo.excludepattern: | 107 if self._localrepo.excludepattern: |