equal
deleted
inserted
replaced
7 |
7 |
8 from mercurial import parsers |
8 from mercurial import parsers |
9 from mercurial import store |
9 from mercurial import store |
10 import binascii, itertools, math, os, random, sys, time |
10 import binascii, itertools, math, os, random, sys, time |
11 import collections |
11 import collections |
|
12 |
|
13 if sys.version_info[:2] < (2, 6): |
|
14 sys.exit(0) |
12 |
15 |
13 def hybridencode(path): |
16 def hybridencode(path): |
14 return store._hybridencode(path, True) |
17 return store._hybridencode(path, True) |
15 |
18 |
16 validchars = set(map(chr, range(0, 256))) |
19 validchars = set(map(chr, range(0, 256))) |
184 |
187 |
185 rng = random.Random(seed) |
188 rng = random.Random(seed) |
186 if runtests(rng, seed, count): |
189 if runtests(rng, seed, count): |
187 sys.exit(1) |
190 sys.exit(1) |
188 |
191 |
189 if __name__ == '__main__' and sys.version_info[:2] >= (2, 6): |
192 if __name__ == '__main__': |
190 main() |
193 main() |