##// END OF EJS Templates
lfs: allow to run 'debugupgraderepo' on repo with largefiles...
Boris Feld -
r35347:9eb19b13 default
parent child Browse files
Show More
@@ -46,6 +46,7 b' from mercurial import ('
46 registrar,
46 registrar,
47 revlog,
47 revlog,
48 scmutil,
48 scmutil,
49 upgrade,
49 vfs as vfsmod,
50 vfs as vfsmod,
50 )
51 )
51
52
@@ -139,6 +140,12 b' def extsetup(ui):'
139
140
140 wrapfunction(scmutil, 'wrapconvertsink', wrapper.convertsink)
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 wrapfunction(changegroup,
149 wrapfunction(changegroup,
143 'supportedoutgoingversions',
150 'supportedoutgoingversions',
144 wrapper.supportedoutgoingversions)
151 wrapper.supportedoutgoingversions)
@@ -302,3 +302,9 b' def uploadblobs(repo, pointers):'
302
302
303 remoteblob = repo.svfs.lfsremoteblobstore
303 remoteblob = repo.svfs.lfsremoteblobstore
304 remoteblob.writebatch(pointers, repo.svfs.lfslocalblobstore)
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