comparison mercurial/changegroup.py @ 24717:90f2b9de30f2

changegroup: flush the ui stdio buffers after adding a changegroup This eliminates the following test failure on Windows, as well as a similar one in evolve's test-wireproto.t. See the previous patch for details on the problem. --- e:/Projects/hg/tests/test-init.t +++ e:/Projects/hg/tests/test-init.t.err @@ -216,10 +216,10 @@ * test 0:08b9e9f63b32 $ hg clone -e "python \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote-bookmarks searching for changes + exporting bookmark test remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 1 changes to 1 files - exporting bookmark test $ hg -R remote-bookmarks bookmarks test 0:08b9e9f63b32
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 10 Apr 2015 23:34:06 -0400
parents e0e28e910fa3
children 9183cb6886ef af5b2f4ed594
comparison
equal deleted inserted replaced
24716:2abbf4750915 24717:90f2b9de30f2
889 889
890 tr.close() 890 tr.close()
891 891
892 finally: 892 finally:
893 tr.release() 893 tr.release()
894 repo.ui.flush()
894 # never return 0 here: 895 # never return 0 here:
895 if dh < 0: 896 if dh < 0:
896 return dh - 1 897 return dh - 1
897 else: 898 else:
898 return dh + 1 899 return dh + 1