##// END OF EJS Templates
test-hybridencode: a few more cases
Adrian Buehlmann -
r17540:f2bcc597 default
parent child Browse files
Show More
@@ -42,11 +42,27 b" show('data/less <, greater >, colon :, d"
42
42
43 print "encoding directories ending in .hg, .i or .d with '.hg' suffix"
43 print "encoding directories ending in .hg, .i or .d with '.hg' suffix"
44 show('data/x.hg/x.i/x.d/foo')
44 show('data/x.hg/x.i/x.d/foo')
45 show('data/a.hg/a.i/a.d/foo')
46 show('data/au.hg/au.i/au.d/foo')
47 show('data/aux.hg/aux.i/aux.d/foo')
48 show('data/auxy.hg/auxy.i/auxy.d/foo')
45
49
46 print "but these are not encoded on *filenames*"
50 print "but these are not encoded on *filenames*"
47 show('data/foo/x.hg')
51 show('data/foo/x.hg')
48 show('data/foo/x.i')
52 show('data/foo/x.i')
49 show('data/foo/x.d')
53 show('data/foo/x.d')
54 show('data/foo/a.hg')
55 show('data/foo/a.i')
56 show('data/foo/a.d')
57 show('data/foo/au.hg')
58 show('data/foo/au.i')
59 show('data/foo/au.d')
60 show('data/foo/aux.hg')
61 show('data/foo/aux.i')
62 show('data/foo/aux.d')
63 show('data/foo/auxy.hg')
64 show('data/foo/auxy.i')
65 show('data/foo/auxy.d')
50
66
51 print "plain .hg, .i and .d directories have the leading dot encoded"
67 print "plain .hg, .i and .d directories have the leading dot encoded"
52 show('data/.hg/.i/.d/foo')
68 show('data/.hg/.i/.d/foo')
@@ -95,6 +111,17 b" show('data/x.con/x.p/x.pr/x.prn/x.a/x.au"
95 show('data/conx/px/prx/prnx/ax/aux/auxx/nx/nux/nulx')
111 show('data/conx/px/prx/prnx/ax/aux/auxx/nx/nux/nulx')
96 show('data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul')
112 show('data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul')
97
113
114 show('data/a./au./aux./auxy./aux.')
115 show('data/c./co./con./cony./con.')
116 show('data/p./pr./prn./prny./prn.')
117 show('data/n./nu./nul./nuly./nul.')
118 show('data/l./lp./lpt./lpt1./lpt1y./lpt1.')
119 show('data/lpt9./lpt9y./lpt9.')
120 show('data/com./com1./com1y./com1.')
121 show('data/com9./com9y./com9.')
122
123 show('data/a /au /aux /auxy /aux ')
124
98 print "largest unhashed path"
125 print "largest unhashed path"
99 show('data/123456789-123456789-123456789-123456789-123456789-'
126 show('data/123456789-123456789-123456789-123456789-123456789-'
100 'unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
127 'unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
@@ -38,6 +38,18 b' encoding directories ending in .hg, .i o'
38 A = 'data/x.hg/x.i/x.d/foo'
38 A = 'data/x.hg/x.i/x.d/foo'
39 B = 'data/x.hg.hg/x.i.hg/x.d.hg/foo'
39 B = 'data/x.hg.hg/x.i.hg/x.d.hg/foo'
40
40
41 A = 'data/a.hg/a.i/a.d/foo'
42 B = 'data/a.hg.hg/a.i.hg/a.d.hg/foo'
43
44 A = 'data/au.hg/au.i/au.d/foo'
45 B = 'data/au.hg.hg/au.i.hg/au.d.hg/foo'
46
47 A = 'data/aux.hg/aux.i/aux.d/foo'
48 B = 'data/au~78.hg.hg/au~78.i.hg/au~78.d.hg/foo'
49
50 A = 'data/auxy.hg/auxy.i/auxy.d/foo'
51 B = 'data/auxy.hg.hg/auxy.i.hg/auxy.d.hg/foo'
52
41 but these are not encoded on *filenames*
53 but these are not encoded on *filenames*
42 A = 'data/foo/x.hg'
54 A = 'data/foo/x.hg'
43 B = 'data/foo/x.hg'
55 B = 'data/foo/x.hg'
@@ -48,6 +60,42 b" B = 'data/foo/x.i'"
48 A = 'data/foo/x.d'
60 A = 'data/foo/x.d'
49 B = 'data/foo/x.d'
61 B = 'data/foo/x.d'
50
62
63 A = 'data/foo/a.hg'
64 B = 'data/foo/a.hg'
65
66 A = 'data/foo/a.i'
67 B = 'data/foo/a.i'
68
69 A = 'data/foo/a.d'
70 B = 'data/foo/a.d'
71
72 A = 'data/foo/au.hg'
73 B = 'data/foo/au.hg'
74
75 A = 'data/foo/au.i'
76 B = 'data/foo/au.i'
77
78 A = 'data/foo/au.d'
79 B = 'data/foo/au.d'
80
81 A = 'data/foo/aux.hg'
82 B = 'data/foo/au~78.hg'
83
84 A = 'data/foo/aux.i'
85 B = 'data/foo/au~78.i'
86
87 A = 'data/foo/aux.d'
88 B = 'data/foo/au~78.d'
89
90 A = 'data/foo/auxy.hg'
91 B = 'data/foo/auxy.hg'
92
93 A = 'data/foo/auxy.i'
94 B = 'data/foo/auxy.i'
95
96 A = 'data/foo/auxy.d'
97 B = 'data/foo/auxy.d'
98
51 plain .hg, .i and .d directories have the leading dot encoded
99 plain .hg, .i and .d directories have the leading dot encoded
52 A = 'data/.hg/.i/.d/foo'
100 A = 'data/.hg/.i/.d/foo'
53 B = 'data/~2ehg.hg/~2ei.hg/~2ed.hg/foo'
101 B = 'data/~2ehg.hg/~2ei.hg/~2ed.hg/foo'
@@ -127,6 +175,33 b" B = 'data/conx/px/prx/prnx/ax/au~78/auxx"
127 A = 'data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul'
175 A = 'data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul'
128 B = 'data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul'
176 B = 'data/xcon/xp/xpr/xprn/xa/xau/xaux/xn/xnu/xnul'
129
177
178 A = 'data/a./au./aux./auxy./aux.'
179 B = 'data/a~2e/au~2e/au~78~2e/auxy~2e/au~78~2e'
180
181 A = 'data/c./co./con./cony./con.'
182 B = 'data/c~2e/co~2e/co~6e~2e/cony~2e/co~6e~2e'
183
184 A = 'data/p./pr./prn./prny./prn.'
185 B = 'data/p~2e/pr~2e/pr~6e~2e/prny~2e/pr~6e~2e'
186
187 A = 'data/n./nu./nul./nuly./nul.'
188 B = 'data/n~2e/nu~2e/nu~6c~2e/nuly~2e/nu~6c~2e'
189
190 A = 'data/l./lp./lpt./lpt1./lpt1y./lpt1.'
191 B = 'data/l~2e/lp~2e/lpt~2e/lp~741~2e/lpt1y~2e/lp~741~2e'
192
193 A = 'data/lpt9./lpt9y./lpt9.'
194 B = 'data/lp~749~2e/lpt9y~2e/lp~749~2e'
195
196 A = 'data/com./com1./com1y./com1.'
197 B = 'data/com~2e/co~6d1~2e/com1y~2e/co~6d1~2e'
198
199 A = 'data/com9./com9y./com9.'
200 B = 'data/co~6d9~2e/com9y~2e/co~6d9~2e'
201
202 A = 'data/a /au /aux /auxy /aux '
203 B = 'data/a~20/au~20/aux~20/auxy~20/aux~20'
204
130 largest unhashed path
205 largest unhashed path
131 A = 'data/123456789-123456789-123456789-123456789-123456789-unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-123456789-12345'
206 A = 'data/123456789-123456789-123456789-123456789-123456789-unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-123456789-12345'
132 B = 'data/123456789-123456789-123456789-123456789-123456789-unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-123456789-12345'
207 B = 'data/123456789-123456789-123456789-123456789-123456789-unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-123456789-12345'
General Comments 0
You need to be logged in to leave comments. Login now