D918: test-revlog-mmapindex: be compatible with chg
quark (Jun Wu)
phabricator at mercurial-scm.org
Tue Oct 3 02:36:08 UTC 2017
quark created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The test misses an explicit flush().
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D918
AFFECTED FILES
tests/test-revlog-mmapindex.t
CHANGE DETAILS
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
To: quark, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list