Mercurial > hg
comparison hgext/largefiles/uisetup.py @ 35564:cf841f2b5a72
largefiles: add support for 'largefiles://' url scheme
This changesets allows Mercurial to transparently download content from the
configured largefile store. This handle all authentication and largefile
protocol details.
The target usecase is to leverage largefile infrastructure for clone bundle. See
next changeset for details
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 21 Dec 2017 13:57:57 +0100 |
parents | 95a9be56c3bb |
children | 625038cb4b1d 742ce6fbc109 |
comparison
equal
deleted
inserted
replaced
35563:4aa6ed598323 | 35564:cf841f2b5a72 |
---|---|
29 merge, | 29 merge, |
30 scmutil, | 30 scmutil, |
31 sshpeer, | 31 sshpeer, |
32 subrepo, | 32 subrepo, |
33 upgrade, | 33 upgrade, |
34 url, | |
34 wireproto, | 35 wireproto, |
35 ) | 36 ) |
36 | 37 |
37 from . import ( | 38 from . import ( |
38 overrides, | 39 overrides, |
157 | 158 |
158 extensions.wrapfunction(cmdutil, 'postcommitstatus', | 159 extensions.wrapfunction(cmdutil, 'postcommitstatus', |
159 overrides.postcommitstatus) | 160 overrides.postcommitstatus) |
160 extensions.wrapfunction(scmutil, 'marktouched', | 161 extensions.wrapfunction(scmutil, 'marktouched', |
161 overrides.scmutilmarktouched) | 162 overrides.scmutilmarktouched) |
163 | |
164 extensions.wrapfunction(url, 'open', | |
165 overrides.openlargefile) | |
162 | 166 |
163 # create the new wireproto commands ... | 167 # create the new wireproto commands ... |
164 wireproto.commands['putlfile'] = (proto.putlfile, 'sha') | 168 wireproto.commands['putlfile'] = (proto.putlfile, 'sha') |
165 wireproto.commands['getlfile'] = (proto.getlfile, 'sha') | 169 wireproto.commands['getlfile'] = (proto.getlfile, 'sha') |
166 wireproto.commands['statlfile'] = (proto.statlfile, 'sha') | 170 wireproto.commands['statlfile'] = (proto.statlfile, 'sha') |