Show More
@@ -46,6 +46,7 from mercurial import ( | |||
|
46 | 46 | registrar, |
|
47 | 47 | revlog, |
|
48 | 48 | scmutil, |
|
49 | upgrade, | |
|
49 | 50 | vfs as vfsmod, |
|
50 | 51 | ) |
|
51 | 52 | |
@@ -139,6 +140,12 def extsetup(ui): | |||
|
139 | 140 | |
|
140 | 141 | wrapfunction(scmutil, 'wrapconvertsink', wrapper.convertsink) |
|
141 | 142 | |
|
143 | wrapfunction(upgrade, 'preservedrequirements', | |
|
144 | wrapper.upgraderequirements) | |
|
145 | ||
|
146 | wrapfunction(upgrade, 'supporteddestrequirements', | |
|
147 | wrapper.upgraderequirements) | |
|
148 | ||
|
142 | 149 | wrapfunction(changegroup, |
|
143 | 150 | 'supportedoutgoingversions', |
|
144 | 151 | wrapper.supportedoutgoingversions) |
@@ -302,3 +302,9 def uploadblobs(repo, pointers): | |||
|
302 | 302 | |
|
303 | 303 | remoteblob = repo.svfs.lfsremoteblobstore |
|
304 | 304 | remoteblob.writebatch(pointers, repo.svfs.lfslocalblobstore) |
|
305 | ||
|
306 | def upgraderequirements(orig, repo): | |
|
307 | reqs = orig(repo) | |
|
308 | if 'lfs' in repo.requirements: | |
|
309 | reqs.add('lfs') | |
|
310 | return reqs |
General Comments 0
You need to be logged in to leave comments.
Login now