changeset 879:85b3d54516a7

exchange: expose length of pushed markers http wireprotocol will need it.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 10 Mar 2014 21:55:41 -0700
parents 5cb2744a6d36
children 7fe06f32d1ad
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)