[PATCH] fixed missing sorting in test-dumprevlog

Adrian Buehlmann adrian at cadifra.com
Fri Apr 11 03:39:33 CDT 2008


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1207898848 -7200
# Node ID ead3b92fc4855cfa1d9a48b34b0c195f0bf8b175
# Parent  3d73b870b3aec3df2a88506f157ca9306a5c33a7
fixed missing sorting in test-dumprevlog

The test failed at random because the order of files was non-deterministic,
which produced diffs in test output.

diff --git a/tests/test-dumprevlog b/tests/test-dumprevlog
--- a/tests/test-dumprevlog
+++ b/tests/test-dumprevlog
@@ -23,7 +23,7 @@
 echo dumprevlog done

 # dump all revlogs to file repo.dump
-find .hg/store/ -name "*.i" | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump
+find .hg/store/ -name "*.i" | sort | xargs python $CONTRIBDIR/dumprevlog > ../repo.dump

 cd ..



More information about the Mercurial-devel mailing list