##// END OF EJS Templates
lfs: move the 'supportedoutgoingversions' handling to changegroup.py...
Matt Harbison -
r37150:a54113fc default
parent child Browse files
Show More
@@ -307,9 +307,6 b' def extsetup(ui):'
307 wrapper.upgraderequirements)
307 wrapper.upgraderequirements)
308
308
309 wrapfunction(changegroup,
309 wrapfunction(changegroup,
310 'supportedoutgoingversions',
311 wrapper.supportedoutgoingversions)
312 wrapfunction(changegroup,
313 'allsupportedversions',
310 'allsupportedversions',
314 wrapper.allsupportedversions)
311 wrapper.allsupportedversions)
315
312
@@ -30,14 +30,6 b' from . import ('
30 pointer,
30 pointer,
31 )
31 )
32
32
33 def supportedoutgoingversions(orig, repo):
34 versions = orig(repo)
35 if 'lfs' in repo.requirements:
36 versions.discard('01')
37 versions.discard('02')
38 versions.add('03')
39 return versions
40
41 def allsupportedversions(orig, ui):
33 def allsupportedversions(orig, ui):
42 versions = orig(ui)
34 versions = orig(ui)
43 versions.add('03')
35 versions.add('03')
@@ -36,6 +36,8 b' from .utils import ('
36 _CHANGEGROUPV2_DELTA_HEADER = "20s20s20s20s20s"
36 _CHANGEGROUPV2_DELTA_HEADER = "20s20s20s20s20s"
37 _CHANGEGROUPV3_DELTA_HEADER = ">20s20s20s20s20sH"
37 _CHANGEGROUPV3_DELTA_HEADER = ">20s20s20s20s20sH"
38
38
39 LFS_REQUIREMENT = 'lfs'
40
39 # When narrowing is finalized and no longer subject to format changes,
41 # When narrowing is finalized and no longer subject to format changes,
40 # we should move this to just "narrow" or similar.
42 # we should move this to just "narrow" or similar.
41 NARROW_REQUIREMENT = 'narrowhg-experimental'
43 NARROW_REQUIREMENT = 'narrowhg-experimental'
@@ -912,6 +914,12 b' def supportedoutgoingversions(repo):'
912 # support that for stripping and unbundling to work.
914 # support that for stripping and unbundling to work.
913 versions.discard('01')
915 versions.discard('01')
914 versions.discard('02')
916 versions.discard('02')
917 if LFS_REQUIREMENT in repo.requirements:
918 # Versions 01 and 02 don't support revlog flags, and we need to
919 # mark LFS entries with REVIDX_EXTSTORED.
920 versions.discard('01')
921 versions.discard('02')
922
915 return versions
923 return versions
916
924
917 def localversion(repo):
925 def localversion(repo):
General Comments 0
You need to be logged in to leave comments. Login now