##// END OF EJS Templates
diff: fix obscure off-by-one error in diff -p
diff: fix obscure off-by-one error in diff -p

File last commit:

r7275:c00cdac2 default
r7436:07faba78 default
Show More
test-hybridencode.py
16 lines | 689 B | text/x-python | PythonLexer
/ tests / test-hybridencode.py
Adrian Buehlmann
add new test-hybridencode.py
r7275 #!/usr/bin/env python
from mercurial import store
enc = store.hybridencode # used for fncache repo format
def show(s):
print "A = '%s'" % s
print "B = '%s'" % enc(s)
print
show('data/aux.bla/bla.aux/prn/PRN/lpt/com3/nul/coma/foo.NUL/normal.c.i')
show('data/AUX/SECOND/X.PRN/FOURTH/FI:FTH/SIXTH/SEVENTH/EIGHTH/NINETH/TENTH/ELEVENTH/LOREMIPSUM.TXT.i')
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')
show('data/AUX.THE-QUICK-BROWN-FOX-JU:MPS-OVER-THE-LAZY-DOG-THE-QUICK-BROWN-FOX-JUMPS-OVER-THE-LAZY-DOG.TXT.i')