equal
deleted
inserted
replaced
3 # |
3 # |
4 # It uses a simple probabilistic model to generate valid pathnames |
4 # It uses a simple probabilistic model to generate valid pathnames |
5 # that have proven likely to expose bugs and divergent behavior in |
5 # that have proven likely to expose bugs and divergent behavior in |
6 # different encoding implementations. |
6 # different encoding implementations. |
7 |
7 |
8 from __future__ import print_function |
8 from __future__ import absolute_import, print_function |
9 |
9 |
10 from mercurial import store |
10 import binascii |
11 import binascii, itertools, math, os, random, sys, time |
|
12 import collections |
11 import collections |
|
12 import itertools |
|
13 import math |
|
14 import os |
|
15 import random |
|
16 import sys |
|
17 import time |
|
18 from mercurial import ( |
|
19 store, |
|
20 ) |
13 |
21 |
14 validchars = set(map(chr, range(0, 256))) |
22 validchars = set(map(chr, range(0, 256))) |
15 alphanum = range(ord('A'), ord('Z')) |
23 alphanum = range(ord('A'), ord('Z')) |
16 |
24 |
17 for c in '\0/': |
25 for c in '\0/': |