changeset 876:1a23c7c52a43

exchange: fix pull over wire protocol Actually hand pulled obsolescence markers to the pull logic. In the wire protocol case we did not reset the position of the file pointer after writing the pulled data. This lead the pull logic to thing that no markers were send at all. This changeset fix this client side bug. (apparently no test check both markers pulling and wireprotocol)
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 07 Mar 2014 14:46:45 -0800
parents e9eeef0d07ec
children 66bbbb96f5e0
files hgext/evolve.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -2303,6 +2303,7 @@
         current += readsize
         ui.progress('OBSEXC', current, unit="bytes", total=length)
     ui.progress('OBSEXC', None)
+    data.seek(0)
     return data
 
 @eh.addattr(localrepo.localpeer, 'evoext_pullobsmarkers_0')