mercurial/sshserver.py
changeset 11621 e46a8b2331a6
parent 11618 83070a9cd526
child 11622 1d48681b17a4
--- a/mercurial/sshserver.py	Fri Jul 16 23:02:46 2010 +0200
+++ b/mercurial/sshserver.py	Fri Jul 16 18:16:15 2010 +0200
@@ -49,6 +49,16 @@
     def getarg(self, name):
         return self.getargs(name)[0]
 
+    def getfile(self, fpout):
+        self.respond('')
+        count = int(self.fin.readline())
+        while count:
+            fpout.write(self.fin.read(count))
+            count = int(self.fin.readline())
+
+    def redirect(self):
+        pass
+
     def respond(self, v):
         self.fout.write("%d\n" % len(v))
         self.fout.write(v)
@@ -68,16 +78,6 @@
             self.fout.write(chunk)
         self.fout.flush()
 
-    def getfile(self, fpout):
-        self.respond('')
-        count = int(self.fin.readline())
-        while count:
-            fpout.write(self.fin.read(count))
-            count = int(self.fin.readline())
-
-    def redirect(self):
-        pass
-
     def respondpush(self, ret):
         self.respond('')
         self.respond(str(ret))