[PATCH 2 of 3] test-pathencode: reduce makepart length requirement by 1

Siddharth Agarwal sid0 at fb.com
Thu Jun 20 12:47:02 CDT 2013


# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1371708082 25200
#      Wed Jun 19 23:01:22 2013 -0700
# Node ID 0388beba5bfc4d02de6d0adcefc8c59f23e19b24
# Parent  149f9a739bbecea91c11fff3612909ceb3c614e0
test-pathencode: reduce makepart length requirement by 1

This allows path components of length 1 to be generated.

diff --git a/tests/test-pathencode.py b/tests/test-pathencode.py
--- a/tests/test-pathencode.py
+++ b/tests/test-pathencode.py
@@ -125,7 +125,7 @@
     p = pickfrom(rng, firsttable)(rng)
     l = len(p)
     ps = [p]
-    while l <= k:
+    while l < k:
         p = pickfrom(rng, resttable)(rng)
         l += len(p)
         ps.append(p)


More information about the Mercurial-devel mailing list