hgext/largefiles/proto.py
changeset 35348 576ba8194fa8
parent 30466 2add671bf55b
child 35507 95a9be56c3bb
--- a/hgext/largefiles/proto.py	Thu Dec 07 00:26:45 2017 +0530
+++ b/hgext/largefiles/proto.py	Sun Dec 10 02:52:48 2017 +0530
@@ -176,7 +176,7 @@
     if cmd == 'heads' and self.capable('largefiles'):
         cmd = 'lheads'
     if cmd == 'batch' and self.capable('largefiles'):
-        args['cmds'] = args['cmds'].replace('heads ', 'lheads ')
+        args[r'cmds'] = args[r'cmds'].replace('heads ', 'lheads ')
     return ssholdcallstream(self, cmd, **args)
 
 headsre = re.compile(r'(^|;)heads\b')
@@ -185,5 +185,5 @@
     if cmd == 'heads' and self.capable('largefiles'):
         cmd = 'lheads'
     if cmd == 'batch' and self.capable('largefiles'):
-        args['cmds'] = headsre.sub('lheads', args['cmds'])
+        args[r'cmds'] = headsre.sub('lheads', args[r'cmds'])
     return httpoldcallstream(self, cmd, **args)