##// END OF EJS Templates
narrow: move changegroup.supportedoutgoingversions() override to core...
Martin von Zweigbergk -
r36483:94709406 default
parent child Browse files
Show More
@@ -21,16 +21,6 b' from mercurial import ('
21
21
22 def setup():
22 def setup():
23
23
24 def supportedoutgoingversions(orig, repo):
25 versions = orig(repo)
26 if changegroup.NARROW_REQUIREMENT in repo.requirements:
27 versions.discard('01')
28 versions.discard('02')
29 return versions
30
31 extensions.wrapfunction(changegroup, 'supportedoutgoingversions',
32 supportedoutgoingversions)
33
34 def prune(orig, self, revlog, missing, commonrevs):
24 def prune(orig, self, revlog, missing, commonrevs):
35 if isinstance(revlog, manifest.manifestrevlog):
25 if isinstance(revlog, manifest.manifestrevlog):
36 matcher = getattr(self._repo, 'narrowmatch',
26 matcher = getattr(self._repo, 'narrowmatch',
@@ -898,6 +898,11 b' def supportedoutgoingversions(repo):'
898 # support versions 01 and 02.
898 # support versions 01 and 02.
899 versions.discard('01')
899 versions.discard('01')
900 versions.discard('02')
900 versions.discard('02')
901 if NARROW_REQUIREMENT in repo.requirements:
902 # Versions 01 and 02 don't support revlog flags, and we need to
903 # support that for stripping and unbundling to work.
904 versions.discard('01')
905 versions.discard('02')
901 return versions
906 return versions
902
907
903 def localversion(repo):
908 def localversion(repo):
General Comments 0
You need to be logged in to leave comments. Login now