[PATCH 3 of 5 V2] tests: use absolute_import, printf_function in multiple files
Robert Stanca
robert.stanca7 at gmail.com
Fri Apr 1 02:12:05 UTC 2016
# HG changeset patch
# User Robert Stanca <robert.stanca7 at gmail.com>
# Date 1459468517 -10800
# Fri Apr 01 02:55:17 2016 +0300
# Node ID 31d3df7a74590e2e1fcd27a763c56bb312d6e464
# Parent 0f544484e1633b9be6a5d6f44598589f48fed347
tests: use absolute_import, printf_function in multiple files
Eliminate Python3 compatibility warnings
diff -r 0f544484e163 -r 31d3df7a7459 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t Fri Apr 01 02:33:56 2016 +0300
+++ b/tests/test-check-py3-compat.t Fri Apr 01 02:55:17 2016 +0300
@@ -68,13 +68,7 @@
tests/test-demandimport.py not using absolute_import
tests/test-demandimport.py requires print_function
tests/test-doctest.py not using absolute_import
- tests/test-hg-parseurl.py not using absolute_import
- tests/test-hg-parseurl.py requires print_function
- tests/test-hgweb-auth.py not using absolute_import
- tests/test-hgweb-auth.py requires print_function
tests/test-hgwebdir-paths.py not using absolute_import
- tests/test-hybridencode.py not using absolute_import
- tests/test-hybridencode.py requires print_function
tests/test-lrucachedict.py not using absolute_import
tests/test-lrucachedict.py requires print_function
tests/test-manifest.py not using absolute_import
@@ -269,9 +263,6 @@
tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
- tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
- tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
- tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
diff -r 0f544484e163 -r 31d3df7a7459 tests/test-hg-parseurl.py
--- a/tests/test-hg-parseurl.py Fri Apr 01 02:33:56 2016 +0300
+++ b/tests/test-hg-parseurl.py Fri Apr 01 02:55:17 2016 +0300
@@ -1,7 +1,10 @@
-from mercurial.hg import parseurl
+from __future__ import absolute_import , print_function
+from mercurial.hg import (
+ parseurl,
+)
def testparse(url, branch=[]):
- print '%s, branches: %r' % parseurl(url, branch)
+ print('%s, branches: %r' % parseurl(url, branch))
testparse('http://example.com/no/anchor')
testparse('http://example.com/an/anchor#foo')
diff -r 0f544484e163 -r 31d3df7a7459 tests/test-hgweb-auth.py
--- a/tests/test-hgweb-auth.py Fri Apr 01 02:33:56 2016 +0300
+++ b/tests/test-hgweb-auth.py Fri Apr 01 02:55:17 2016 +0300
@@ -1,6 +1,10 @@
+from __future__ import absolute_import, print_function
from mercurial import demandimport; demandimport.enable()
import urllib2
-from mercurial import ui, util
+from mercurial import (
+ ui,
+ util,
+)
from mercurial import url
from mercurial.error import Abort
@@ -21,7 +25,7 @@
for k in sorted(dict.iterkeys())]) + '}'
def test(auth, urls=None):
- print 'CFG:', dumpdict(auth)
+ print('CFG:', dumpdict(auth))
prefixes = set()
for k in auth:
prefixes.add(k.split('.', 1)[0])
@@ -34,15 +38,15 @@
ui = writeauth(auth)
def _test(uri):
- print 'URI:', uri
+ print('URI:', uri)
try:
pm = url.passwordmgr(ui)
u, authinfo = util.url(uri).authinfo()
if authinfo is not None:
pm.add_password(*authinfo)
- print ' ', pm.find_user_password('test', u)
+ print(' ', pm.find_user_password('test', u))
except Abort:
- print 'abort'
+ print(' ', 'abort')
if not urls:
urls = [
@@ -59,25 +63,25 @@
_test(u)
-print '\n*** Test in-uri schemes\n'
+print('\n*** Test in-uri schemes\n')
test({'x.prefix': 'http://example.org'})
test({'x.prefix': 'https://example.org'})
test({'x.prefix': 'http://example.org', 'x.schemes': 'https'})
test({'x.prefix': 'https://example.org', 'x.schemes': 'http'})
-print '\n*** Test separately configured schemes\n'
+print('\n*** Test separately configured schemes\n')
test({'x.prefix': 'example.org', 'x.schemes': 'http'})
test({'x.prefix': 'example.org', 'x.schemes': 'https'})
test({'x.prefix': 'example.org', 'x.schemes': 'http https'})
-print '\n*** Test prefix matching\n'
+print('\n*** Test prefix matching\n')
test({'x.prefix': 'http://example.org/foo',
'y.prefix': 'http://example.org/bar'})
test({'x.prefix': 'http://example.org/foo',
'y.prefix': 'http://example.org/foo/bar'})
test({'x.prefix': '*', 'y.prefix': 'https://example.org/bar'})
-print '\n*** Test user matching\n'
+print('\n*** Test user matching\n')
test({'x.prefix': 'http://example.org/foo',
'x.username': None,
'x.password': 'xpassword'},
@@ -98,10 +102,10 @@
urls=['http://y@example.org/foo/bar'])
def testauthinfo(fullurl, authurl):
- print 'URIs:', fullurl, authurl
+ print('URIs:', fullurl, authurl)
pm = urllib2.HTTPPasswordMgrWithDefaultRealm()
pm.add_password(*util.url(fullurl).authinfo()[1])
- print pm.find_user_password('test', authurl)
+ print(pm.find_user_password('test', authurl))
-print '\n*** Test urllib2 and util.url\n'
+print('\n*** Test urllib2 and util.url\n')
testauthinfo('http://user@example.com:8080/foo', 'http://example.com:8080/foo')
diff -r 0f544484e163 -r 31d3df7a7459 tests/test-hybridencode.py
--- a/tests/test-hybridencode.py Fri Apr 01 02:33:56 2016 +0300
+++ b/tests/test-hybridencode.py Fri Apr 01 02:55:17 2016 +0300
@@ -1,35 +1,36 @@
+from __future__ import absolute_import, print_function
from mercurial import store
def show(s):
# show test input
- print "A = '%s'" % s.encode("string_escape")
+ print("A = '%s'" % s.encode("string_escape"))
# show the result of the C implementation, if available
h = store._pathencode(s)
- print "B = '%s'" % h.encode("string_escape")
+ print("B = '%s'" % h.encode("string_escape"))
# compare it with reference implementation in Python
r = store._hybridencode(s, True)
if h != r:
- print "R = '%s'" % r.encode("string_escape")
- print
+ print("R = '%s'" % r.encode("string_escape"))
+ print()
show("data/abcdefghijklmnopqrstuvwxyz0123456789 !#%&'()+,-.;=[]^`{}")
-print "uppercase char X is encoded as _x"
+print("uppercase char X is encoded as _x")
show("data/ABCDEFGHIJKLMNOPQRSTUVWXYZ")
-print "underbar is doubled"
+print("underbar is doubled")
show("data/_")
-print "tilde is character-encoded"
+print("tilde is character-encoded")
show("data/~")
-print "characters in ASCII code range 1..31"
+print("characters in ASCII code range 1..31")
show('data/\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f'
'\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f')
-print "characters in ASCII code range 126..255"
+print("characters in ASCII code range 126..255")
show('data/\x7e\x7f'
'\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f'
'\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f')
@@ -40,18 +41,18 @@
show('data/\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef'
'\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff')
-print "Windows reserved characters"
+print("Windows reserved characters")
show('data/less <, greater >, colon :, double-quote ", backslash \\'
', pipe |, question-mark ?, asterisk *')
-print "encoding directories ending in .hg, .i or .d with '.hg' suffix"
+print("encoding directories ending in .hg, .i or .d with '.hg' suffix")
show('data/x.h.i/x.hg/x.i/x.d/foo')
show('data/a.hg/a.i/a.d/foo')
show('data/au.hg/au.i/au.d/foo')
show('data/aux.hg/aux.i/aux.d/foo')
show('data/auxy.hg/auxy.i/auxy.d/foo')
-print "but these are not encoded on *filenames*"
+print("but these are not encoded on *filenames*")
show('data/foo/x.hg')
show('data/foo/x.i')
show('data/foo/x.d')
@@ -68,7 +69,7 @@
show('data/foo/auxy.i')
show('data/foo/auxy.d')
-print "plain .hg, .i and .d directories have the leading dot encoded"
+print("plain .hg, .i and .d directories have the leading dot encoded")
show('data/.hg/.i/.d/foo')
show('data/aux.bla/bla.aux/prn/PRN/lpt/com3/nul/coma/foo.NUL/normal.c.i')
@@ -126,22 +127,22 @@
show('data/a /au /aux /auxy /aux ')
-print "largest unhashed path"
+print("largest unhashed path")
show('data/123456789-123456789-123456789-123456789-123456789-'
'unhashed--xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "shortest hashed path"
+print("shortest hashed path")
show('data/123456789-123456789-123456789-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "changing one char in part that's hashed away produces a different hash"
+print("changing one char in part that's hashed away produces a different hash")
show('data/123456789-123456789-123456789-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxy-'
'123456789-123456')
-print "uppercase hitting length limit due to encoding"
+print("uppercase hitting length limit due to encoding")
show('data/A23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
@@ -149,7 +150,7 @@
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "compare with lowercase not hitting limit"
+print("compare with lowercase not hitting limit")
show('data/a23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
@@ -157,22 +158,22 @@
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "not hitting limit with any of these"
+print("not hitting limit with any of these")
show("data/abcdefghijklmnopqrstuvwxyz0123456789 !#%&'()+,-.;="
"[]^`{}xxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-"
"123456789-12345")
-print "underbar hitting length limit due to encoding"
+print("underbar hitting length limit due to encoding")
show('data/_23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "tilde hitting length limit due to encoding"
+print("tilde hitting length limit due to encoding")
show('data/~23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "Windows reserved characters hitting length limit"
+print("Windows reserved characters hitting length limit")
show('data/<23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
@@ -198,47 +199,47 @@
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "initial space hitting length limit"
+print("initial space hitting length limit")
show('data/ 23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "initial dot hitting length limit"
+print("initial dot hitting length limit")
show('data/.23456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "trailing space in filename hitting length limit"
+print("trailing space in filename hitting length limit")
show('data/123456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-1234 ')
-print "trailing dot in filename hitting length limit"
+print("trailing dot in filename hitting length limit")
show('data/123456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-1234.')
-print "initial space in directory hitting length limit"
+print("initial space in directory hitting length limit")
show('data/ x/456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "initial dot in directory hitting length limit"
+print("initial dot in directory hitting length limit")
show('data/.x/456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "trailing space in directory hitting length limit"
+print("trailing space in directory hitting length limit")
show('data/x /456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "trailing dot in directory hitting length limit"
+print("trailing dot in directory hitting length limit")
show('data/x./456789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "with directories that need direncoding, hitting length limit"
+print("with directories that need direncoding, hitting length limit")
show('data/x.i/56789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
@@ -249,7 +250,7 @@
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "Windows reserved filenames, hitting length limit"
+print("Windows reserved filenames, hitting length limit")
show('data/con/56789-123456789-123456789-123456789-123456789-'
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
@@ -275,100 +276,100 @@
'xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "non-reserved names, just not hitting limit"
+print("non-reserved names, just not hitting limit")
show('data/123456789-123456789-123456789-123456789-123456789-'
'/com/com0/lpt/lpt0/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12345')
-print "hashed path with largest untruncated 1st dir"
+print("hashed path with largest untruncated 1st dir")
show('data/12345678/-123456789-123456789-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated 1st dir"
+print("hashed path with smallest truncated 1st dir")
show('data/123456789/123456789-123456789-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated two dirs"
+print("hashed path with largest untruncated two dirs")
show('data/12345678/12345678/9-123456789-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated two dirs"
+print("hashed path with smallest truncated two dirs")
show('data/123456789/123456789/123456789-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated three dirs"
+print("hashed path with largest untruncated three dirs")
show('data/12345678/12345678/12345678/89-123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated three dirs"
+print("hashed path with smallest truncated three dirs")
show('data/123456789/123456789/123456789/123456789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated four dirs"
+print("hashed path with largest untruncated four dirs")
show('data/12345678/12345678/12345678/12345678/789-123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated four dirs"
+print("hashed path with smallest truncated four dirs")
show('data/123456789/123456789/123456789/123456789/123456789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated five dirs"
+print("hashed path with largest untruncated five dirs")
show('data/12345678/12345678/12345678/12345678/12345678/6789-'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated five dirs"
+print("hashed path with smallest truncated five dirs")
show('data/123456789/123456789/123456789/123456789/123456789/'
'hashed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated six dirs"
+print("hashed path with largest untruncated six dirs")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/ed----xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated six dirs"
+print("hashed path with smallest truncated six dirs")
show('data/123456789/123456789/123456789/123456789/123456789/'
'123456789/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated seven dirs"
+print("hashed path with largest untruncated seven dirs")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/xxxxxx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated seven dirs"
+print("hashed path with smallest truncated seven dirs")
show('data/123456789/123456789/123456789/123456789/123456789/'
'123456789/123456789/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest untruncated eight dirs"
-print "(directory 8 is dropped because it hits _maxshortdirslen)"
+print("hashed path with largest untruncated eight dirs")
+print("(directory 8 is dropped because it hits _maxshortdirslen)")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/12345678/xxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with smallest truncated eight dirs"
-print "(directory 8 is dropped because it hits _maxshortdirslen)"
+print("hashed path with smallest truncated eight dirs")
+print("(directory 8 is dropped because it hits _maxshortdirslen)")
show('data/123456789/123456789/123456789/123456789/123456789/'
'123456789/123456789/123456789/xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with largest non-dropped directory 8"
-print "(just not hitting the _maxshortdirslen boundary)"
+print("hashed path with largest non-dropped directory 8")
+print("(just not hitting the _maxshortdirslen boundary)")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "...adding one truncated char to dir 1..7 won't drop dir 8"
+print("...adding one truncated char to dir 1..7 won't drop dir 8")
show('data/12345678x/12345678/12345678/12345678/12345678/12345'
'678/12345678/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
@@ -391,14 +392,14 @@
'678/12345678x/12345/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path with shortest dropped directory 8"
-print "(just hitting the _maxshortdirslen boundary)"
+print("hashed path with shortest dropped directory 8")
+print("(just hitting the _maxshortdirslen boundary)")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/123456/xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "hashed path that drops dir 8 due to dot or space at end is"
-print "encoded, and thus causing to hit _maxshortdirslen"
+print("hashed path that drops dir 8 due to dot or space at end is")
+print("encoded, and thus causing to hit _maxshortdirslen")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/1234./-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
@@ -406,7 +407,7 @@
'678/12345678/1234 /-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print "... with dir 8 short enough for encoding"
+print("... with dir 8 short enough for encoding")
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/12./xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
@@ -414,9 +415,9 @@
'678/12345678/12 /xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-123456')
-print '''Extensions are replicated on hashed paths. Note that
+print('''Extensions are replicated on hashed paths. Note that
we only get to encode files that end in .i or .d inside the
-store. Encoded filenames are thus bound in length.'''
+store. Encoded filenames are thus bound in length.''')
show('data/12345678/12345678/12345678/12345678/12345678/12345'
'678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
'123456789-12.345.i')
@@ -461,7 +462,7 @@
'xxxxx-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwww'
'wwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww.i')
-print "paths outside data/ can be encoded"
+print("paths outside data/ can be encoded")
show('metadata/dir/00manifest.i')
show('metadata/12345678/12345678/12345678/12345678/12345678/'
'12345678/12345678/12345678/12345678/12345678/12345678/'
More information about the Mercurial-devel
mailing list