equal
deleted
inserted
replaced
9 '''setup for largefiles extension: uisetup''' |
9 '''setup for largefiles extension: uisetup''' |
10 |
10 |
11 from mercurial import archival, cmdutil, commands, extensions, filemerge, hg, \ |
11 from mercurial import archival, cmdutil, commands, extensions, filemerge, hg, \ |
12 httprepo, localrepo, merge, sshrepo, sshserver, wireproto |
12 httprepo, localrepo, merge, sshrepo, sshserver, wireproto |
13 from mercurial.i18n import _ |
13 from mercurial.i18n import _ |
14 from mercurial.hgweb import hgweb_mod, protocol |
14 from mercurial.hgweb import hgweb_mod, protocol, webcommands |
15 |
15 |
16 import overrides |
16 import overrides |
17 import proto |
17 import proto |
18 |
18 |
19 def uisetup(ui): |
19 def uisetup(ui): |
107 # the same as pull w.r.t. permissions checks |
107 # the same as pull w.r.t. permissions checks |
108 hgweb_mod.perms['putlfile'] = 'push' |
108 hgweb_mod.perms['putlfile'] = 'push' |
109 hgweb_mod.perms['getlfile'] = 'pull' |
109 hgweb_mod.perms['getlfile'] = 'pull' |
110 hgweb_mod.perms['statlfile'] = 'pull' |
110 hgweb_mod.perms['statlfile'] = 'pull' |
111 |
111 |
|
112 extensions.wrapfunction(webcommands, 'decodepath', overrides.decodepath) |
|
113 |
112 # the hello wireproto command uses wireproto.capabilities, so it won't see |
114 # the hello wireproto command uses wireproto.capabilities, so it won't see |
113 # our largefiles capability unless we replace the actual function as well. |
115 # our largefiles capability unless we replace the actual function as well. |
114 proto.capabilitiesorig = wireproto.capabilities |
116 proto.capabilitiesorig = wireproto.capabilities |
115 wireproto.capabilities = proto.capabilities |
117 wireproto.capabilities = proto.capabilities |
116 |
118 |