--- 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.