Kiln » largefiles » Unity
Clone URL:  

proto: rename kheads, an artifact of "kbfiles" to lheads

Changeset 1408ea59a63a

Parent 36e9de8c36c1

by Profile picture of User 521Andrew Pritchard <andrewp@fogcreek.com>

Changes to 2 files · Browse files at 1408ea59a63a Showing diff from parent 36e9de8c36c1 Diff from another changeset...

Change 1 of 1 Show Entire File proto.py Stacked
 
149
150
151
152
 
153
154
 
155
156
157
158
159
 
160
161
 
162
 
149
150
151
 
152
153
 
154
155
156
157
158
 
159
160
 
161
162
@@ -149,14 +149,14 @@
   def sshrepo_callstream(self, cmd, **args):   if cmd == 'heads' and self.capable('largefiles'): - cmd = 'k' + cmd + cmd = 'lheads'   if cmd == 'batch' and self.capable('largefiles'): - args['cmds'] = args['cmds'].replace('heads ', 'kheads ') + args['cmds'] = args['cmds'].replace('heads ', 'lheads ')   return ssh_oldcallstream(self, cmd, **args)    def httprepo_callstream(self, cmd, **args):   if cmd == 'heads' and self.capable('largefiles'): - cmd = 'k' + cmd + cmd = 'lheads'   if cmd == 'batch' and self.capable('largefiles'): - args['cmds'] = args['cmds'].replace('heads ', 'kheads ') + args['cmds'] = args['cmds'].replace('heads ', 'lheads ')   return http_oldcallstream(self, cmd, **args)
Change 1 of 1 Show Entire File uisetup.py Stacked
 
83
84
85
86
 
87
88
89
 
83
84
85
 
86
87
88
89
@@ -83,7 +83,7 @@
  # ... and wrap some existing ones   wireproto.commands['capabilities'] = (proto.capabilities, '')   wireproto.commands['heads'] = (proto.heads, '') - wireproto.commands['kheads'] = (wireproto.heads, '') + wireproto.commands['lheads'] = (wireproto.heads, '')     # make putlfile behave the same as push and {get,stat}lfile behave the same   # as pull w.r.t. permissions checks