mercurial/httprepo.py
changeset 11153 9936ed1d04f4
parent 10544 2e1a9b811d13
child 11370 db3f6f0e4e7d
--- a/mercurial/httprepo.py	Sat May 01 18:39:40 2010 -0400
+++ b/mercurial/httprepo.py	Sun May 02 21:56:25 2010 -0400
@@ -208,6 +208,12 @@
         return util.chunkbuffer(zgenerator(f))
 
     def unbundle(self, cg, heads, source):
+        '''Send cg (a readable file-like object representing the
+        changegroup to push, typically a chunkbuffer object) to the
+        remote server as a bundle. Return an integer response code:
+        non-zero indicates a successful push (see
+        localrepository.addchangegroup()), and zero indicates either
+        error or nothing to push.'''
         # have to stream bundle to a temp file because we do not have
         # http 1.1 chunked transfer.