# HG changeset patch # User Pierre-Yves David # Date 1409153080 -7200 # Node ID 41d2555141ea2467b241abdf8e8be8804a507d0e # Parent e8f49b32e95b4964b1e2fa078ea3f38324c72f1d evolve: allow read() from the magic StringIO diff -r e8f49b32e95b -r 41d2555141ea hgext/evolve.py --- a/hgext/evolve.py Wed Aug 27 17:12:01 2014 +0200 +++ b/hgext/evolve.py Wed Aug 27 17:24:40 2014 +0200 @@ -2396,7 +2396,7 @@ def length(self): return len(self.getvalue()) - def read(self, size): + def read(self, size=None): obsexcprg(self.ui, self.tell(), unit="bytes", total=self.length) return StringIO.read(self, size)