changeset 18110:acfc6fab1361

test-pathencode: accept --seed parameter in hex as well test-pathencode.py outputs the seed value in hex if it finds a deviation. This change allows to specify the seed value as a command line parameter for test-pathencode.py in hex as well.
author Adrian Buehlmann <adrian@cadifra.com>
date Thu, 20 Dec 2012 15:18:41 +0100
parents 9e3910db4e78
children d7c28954d901
files tests/test-pathencode.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-pathencode.py	Thu Dec 13 23:37:53 2012 +0100
+++ b/tests/test-pathencode.py	Thu Dec 20 15:18:41 2012 +0100
@@ -177,7 +177,7 @@
         if o in ('-c', '--count'):
             count = int(a)
         elif o in ('-s', '--seed'):
-            seed = long(a)
+            seed = long(a, base=0) # accepts base 10 or 16 strings
         elif o == '--build':
             buildprobtable(sys.stdout,
                            'find .hg/store/data -type f && '