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