changeset 34447:b0c97e44576f

test-revlog-mmapindex: make it compatible with chg The test misses an explicit flush(). Differential Revision: https://phab.mercurial-scm.org/D918
author Jun Wu <quark@fb.com>
date Mon, 02 Oct 2017 19:31:33 -0700
parents 5b19f0442043
children 5385b76fd1fd
files tests/test-revlog-mmapindex.t
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revlog-mmapindex.t	Mon Oct 02 19:10:32 2017 -0700
+++ b/tests/test-revlog-mmapindex.t	Mon Oct 02 19:31:33 2017 -0700
@@ -9,11 +9,12 @@
   >     util,
   > )
   > 
-  > def mmapread(orig, fp):
-  >     print "mmapping %s" % fp.name
-  >     return orig(fp)
+  > def extsetup(ui):
+  >     def mmapread(orig, fp):
+  >         ui.write("mmapping %s\n" % fp.name)
+  >         ui.flush()
+  >         return orig(fp)
   > 
-  > def extsetup(ui):
   >     extensions.wrapfunction(util, 'mmapread', mmapread)
   > EOF