Show More
@@ -307,9 +307,6 b' def extsetup(ui):' | |||
|
307 | 307 | wrapper.upgraderequirements) |
|
308 | 308 | |
|
309 | 309 | wrapfunction(changegroup, |
|
310 | 'supportedoutgoingversions', | |
|
311 | wrapper.supportedoutgoingversions) | |
|
312 | wrapfunction(changegroup, | |
|
313 | 310 | 'allsupportedversions', |
|
314 | 311 | wrapper.allsupportedversions) |
|
315 | 312 |
@@ -30,14 +30,6 b' from . import (' | |||
|
30 | 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 | 33 | def allsupportedversions(orig, ui): |
|
42 | 34 | versions = orig(ui) |
|
43 | 35 | versions.add('03') |
@@ -36,6 +36,8 b' from .utils import (' | |||
|
36 | 36 | _CHANGEGROUPV2_DELTA_HEADER = "20s20s20s20s20s" |
|
37 | 37 | _CHANGEGROUPV3_DELTA_HEADER = ">20s20s20s20s20sH" |
|
38 | 38 | |
|
39 | LFS_REQUIREMENT = 'lfs' | |
|
40 | ||
|
39 | 41 | # When narrowing is finalized and no longer subject to format changes, |
|
40 | 42 | # we should move this to just "narrow" or similar. |
|
41 | 43 | NARROW_REQUIREMENT = 'narrowhg-experimental' |
@@ -912,6 +914,12 b' def supportedoutgoingversions(repo):' | |||
|
912 | 914 | # support that for stripping and unbundling to work. |
|
913 | 915 | versions.discard('01') |
|
914 | 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 | 923 | return versions |
|
916 | 924 | |
|
917 | 925 | def localversion(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now