##// END OF EJS Templates
test-hybridencode: break long string literals
Martin Geisler -
r8659:1a6d702e default
parent child Browse files
Show More
@@ -1,19 +1,25 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2
2
3 from mercurial import store
3 from mercurial import store
4
4
5 enc = store.hybridencode # used for fncache repo format
5 enc = store.hybridencode # used for fncache repo format
6
6
7 def show(s):
7 def show(s):
8 print "A = '%s'" % s
8 print "A = '%s'" % s
9 print "B = '%s'" % enc(s)
9 print "B = '%s'" % enc(s)
10 print
10 print
11
11
12 show('data/aux.bla/bla.aux/prn/PRN/lpt/com3/nul/coma/foo.NUL/normal.c.i')
12 show('data/aux.bla/bla.aux/prn/PRN/lpt/com3/nul/coma/foo.NUL/normal.c.i')
13
13
14 show('data/AUX/SECOND/X.PRN/FOURTH/FI:FTH/SIXTH/SEVENTH/EIGHTH/NINETH/TENTH/ELEVENTH/LOREMIPSUM.TXT.i')
14 show('data/AUX/SECOND/X.PRN/FOURTH/FI:FTH/SIXTH/SEVENTH/EIGHTH/NINETH/'
15 show('data/enterprise/openesbaddons/contrib-imola/corba-bc/netbeansplugin/wsdlExtension/src/main/java/META-INF/services/org.netbeans.modules.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider.i')
15 'TENTH/ELEVENTH/LOREMIPSUM.TXT.i')
16 show('data/AUX.THE-QUICK-BROWN-FOX-JU:MPS-OVER-THE-LAZY-DOG-THE-QUICK-BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG.TXT.i')
16 show('data/enterprise/openesbaddons/contrib-imola/corba-bc/netbeansplugin/'
17 show('data/Project Planning/Resources/AnotherLongDirectoryName/Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
17 'wsdlExtension/src/main/java/META-INF/services/org.netbeans.modules'
18 show('data/Project.Planning/Resources/AnotherLongDirectoryName/Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
18 '.xml.wsdl.bindingsupport.spi.ExtensibilityElementTemplateProvider.i')
19 show('data/AUX.THE-QUICK-BROWN-FOX-JU:MPS-OVER-THE-LAZY-DOG-THE-QUICK-'
20 'BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG.TXT.i')
21 show('data/Project Planning/Resources/AnotherLongDirectoryName/'
22 'Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
23 show('data/Project.Planning/Resources/AnotherLongDirectoryName/'
24 'Followedbyanother/AndAnother/AndThenAnExtremelyLongFileName.txt')
19 show('data/foo.../foo / /a./_. /__/.x../ bla/something.i')
25 show('data/foo.../foo / /a./_. /__/.x../ bla/something.i')
General Comments 0
You need to be logged in to leave comments. Login now