Show More
@@ -5,6 +5,7 b'' | |||||
5 |
|
5 | |||
6 | import os |
|
6 | import os | |
7 | import urllib2 |
|
7 | import urllib2 | |
|
8 | import re | |||
8 |
|
9 | |||
9 | from mercurial import error, httppeer, util, wireproto |
|
10 | from mercurial import error, httppeer, util, wireproto | |
10 | from mercurial.wireproto import batchable, future |
|
11 | from mercurial.wireproto import batchable, future | |
@@ -166,9 +167,11 b' def sshrepocallstream(self, cmd, **args)' | |||||
166 | args['cmds'] = args['cmds'].replace('heads ', 'lheads ') |
|
167 | args['cmds'] = args['cmds'].replace('heads ', 'lheads ') | |
167 | return ssholdcallstream(self, cmd, **args) |
|
168 | return ssholdcallstream(self, cmd, **args) | |
168 |
|
169 | |||
|
170 | headsre = re.compile(r'(^|;)heads\b') | |||
|
171 | ||||
169 | def httprepocallstream(self, cmd, **args): |
|
172 | def httprepocallstream(self, cmd, **args): | |
170 | if cmd == 'heads' and self.capable('largefiles'): |
|
173 | if cmd == 'heads' and self.capable('largefiles'): | |
171 | cmd = 'lheads' |
|
174 | cmd = 'lheads' | |
172 | if cmd == 'batch' and self.capable('largefiles'): |
|
175 | if cmd == 'batch' and self.capable('largefiles'): | |
173 | args['cmds'] = args['cmds'].replace('heads ', 'lheads ') |
|
176 | args['cmds'] = headsre.sub('lheads', args['cmds']) | |
174 | return httpoldcallstream(self, cmd, **args) |
|
177 | return httpoldcallstream(self, cmd, **args) |
General Comments 0
You need to be logged in to leave comments.
Login now