exchange: expose length of pushed markers
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 10 Mar 2014 21:55:41 -0700
changeset 879 85b3d54516a7
parent 878 5cb2744a6d36
child 880 7fe06f32d1ad
exchange: expose length of pushed markers http wireprotocol will need it.
hgext/evolve.py
--- a/hgext/evolve.py	Mon Mar 10 22:09:26 2014 -0700
+++ b/hgext/evolve.py	Mon Mar 10 21:55:41 2014 -0700
@@ -2115,12 +2115,12 @@
     """hacky string io for progress"""
 
     @util.propertycache
-    def _length(self):
+    def length(self):
         return len(self.getvalue())
 
     def read(self, size):
         self.ui.progress('OBSEXC', self.tell(), unit="bytes",
-                         total=self._length)
+                         total=self.length)
         return StringIO.read(self, size)