Patchwork D918: test-revlog-mmapindex: make it compatible with chg

login
register
mail settings
Submitter phabricator
Date Oct. 4, 2017, 1:16 p.m.
Message ID <df683e856ac30c1ab5f2fcc75f7c8249@localhost.localdomain>
Download mbox | patch
Permalink /patch/24462/
State Not Applicable
Headers show

Comments

phabricator - Oct. 4, 2017, 1:16 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb0c97e44576f: test-revlog-mmapindex: make it compatible with chg (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D918?vs=2373&id=2403

REVISION DETAIL
  https://phab.mercurial-scm.org/D918

AFFECTED FILES
  tests/test-revlog-mmapindex.t

CHANGE DETAILS




To: quark, #hg-reviewers, singhsrb
Cc: mercurial-devel

Patch

diff --git a/tests/test-revlog-mmapindex.t b/tests/test-revlog-mmapindex.t
--- a/tests/test-revlog-mmapindex.t
+++ b/tests/test-revlog-mmapindex.t
@@ -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