##// END OF EJS Templates
py3: use absolute_import in test-minirst.py
Robert Stanca -
r28751:67a4e42a default
parent child Browse files
Show More
@@ -1,247 +1,246 b''
1 #require test-repo
1 #require test-repo
2
2
3 $ cd "$TESTDIR"/..
3 $ cd "$TESTDIR"/..
4
4
5 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
5 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
6 doc/check-seclevel.py not using absolute_import
6 doc/check-seclevel.py not using absolute_import
7 doc/gendoc.py not using absolute_import
7 doc/gendoc.py not using absolute_import
8 doc/hgmanpage.py not using absolute_import
8 doc/hgmanpage.py not using absolute_import
9 hgext/color.py not using absolute_import
9 hgext/color.py not using absolute_import
10 hgext/eol.py not using absolute_import
10 hgext/eol.py not using absolute_import
11 hgext/extdiff.py not using absolute_import
11 hgext/extdiff.py not using absolute_import
12 hgext/factotum.py not using absolute_import
12 hgext/factotum.py not using absolute_import
13 hgext/fetch.py not using absolute_import
13 hgext/fetch.py not using absolute_import
14 hgext/fsmonitor/pywatchman/__init__.py not using absolute_import
14 hgext/fsmonitor/pywatchman/__init__.py not using absolute_import
15 hgext/fsmonitor/pywatchman/__init__.py requires print_function
15 hgext/fsmonitor/pywatchman/__init__.py requires print_function
16 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
16 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
17 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
17 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
18 hgext/gpg.py not using absolute_import
18 hgext/gpg.py not using absolute_import
19 hgext/graphlog.py not using absolute_import
19 hgext/graphlog.py not using absolute_import
20 hgext/hgcia.py not using absolute_import
20 hgext/hgcia.py not using absolute_import
21 hgext/hgk.py not using absolute_import
21 hgext/hgk.py not using absolute_import
22 hgext/highlight/__init__.py not using absolute_import
22 hgext/highlight/__init__.py not using absolute_import
23 hgext/highlight/highlight.py not using absolute_import
23 hgext/highlight/highlight.py not using absolute_import
24 hgext/histedit.py not using absolute_import
24 hgext/histedit.py not using absolute_import
25 hgext/largefiles/__init__.py not using absolute_import
25 hgext/largefiles/__init__.py not using absolute_import
26 hgext/largefiles/basestore.py not using absolute_import
26 hgext/largefiles/basestore.py not using absolute_import
27 hgext/largefiles/lfcommands.py not using absolute_import
27 hgext/largefiles/lfcommands.py not using absolute_import
28 hgext/largefiles/lfutil.py not using absolute_import
28 hgext/largefiles/lfutil.py not using absolute_import
29 hgext/largefiles/localstore.py not using absolute_import
29 hgext/largefiles/localstore.py not using absolute_import
30 hgext/largefiles/overrides.py not using absolute_import
30 hgext/largefiles/overrides.py not using absolute_import
31 hgext/largefiles/proto.py not using absolute_import
31 hgext/largefiles/proto.py not using absolute_import
32 hgext/largefiles/remotestore.py not using absolute_import
32 hgext/largefiles/remotestore.py not using absolute_import
33 hgext/largefiles/reposetup.py not using absolute_import
33 hgext/largefiles/reposetup.py not using absolute_import
34 hgext/largefiles/uisetup.py not using absolute_import
34 hgext/largefiles/uisetup.py not using absolute_import
35 hgext/largefiles/wirestore.py not using absolute_import
35 hgext/largefiles/wirestore.py not using absolute_import
36 hgext/mq.py not using absolute_import
36 hgext/mq.py not using absolute_import
37 hgext/rebase.py not using absolute_import
37 hgext/rebase.py not using absolute_import
38 hgext/share.py not using absolute_import
38 hgext/share.py not using absolute_import
39 hgext/win32text.py not using absolute_import
39 hgext/win32text.py not using absolute_import
40 i18n/check-translation.py not using absolute_import
40 i18n/check-translation.py not using absolute_import
41 i18n/polib.py not using absolute_import
41 i18n/polib.py not using absolute_import
42 setup.py not using absolute_import
42 setup.py not using absolute_import
43 tests/heredoctest.py requires print_function
43 tests/heredoctest.py requires print_function
44 tests/killdaemons.py not using absolute_import
44 tests/killdaemons.py not using absolute_import
45 tests/md5sum.py not using absolute_import
45 tests/md5sum.py not using absolute_import
46 tests/mockblackbox.py not using absolute_import
46 tests/mockblackbox.py not using absolute_import
47 tests/printenv.py not using absolute_import
47 tests/printenv.py not using absolute_import
48 tests/readlink.py not using absolute_import
48 tests/readlink.py not using absolute_import
49 tests/readlink.py requires print_function
49 tests/readlink.py requires print_function
50 tests/revlog-formatv0.py not using absolute_import
50 tests/revlog-formatv0.py not using absolute_import
51 tests/run-tests.py not using absolute_import
51 tests/run-tests.py not using absolute_import
52 tests/sitecustomize.py not using absolute_import
52 tests/sitecustomize.py not using absolute_import
53 tests/svn-safe-append.py not using absolute_import
53 tests/svn-safe-append.py not using absolute_import
54 tests/svnxml.py not using absolute_import
54 tests/svnxml.py not using absolute_import
55 tests/test-atomictempfile.py not using absolute_import
55 tests/test-atomictempfile.py not using absolute_import
56 tests/test-demandimport.py not using absolute_import
56 tests/test-demandimport.py not using absolute_import
57 tests/test-demandimport.py requires print_function
57 tests/test-demandimport.py requires print_function
58 tests/test-doctest.py not using absolute_import
58 tests/test-doctest.py not using absolute_import
59 tests/test-hgwebdir-paths.py not using absolute_import
59 tests/test-hgwebdir-paths.py not using absolute_import
60 tests/test-lrucachedict.py not using absolute_import
60 tests/test-lrucachedict.py not using absolute_import
61 tests/test-lrucachedict.py requires print_function
61 tests/test-lrucachedict.py requires print_function
62 tests/test-manifest.py not using absolute_import
62 tests/test-manifest.py not using absolute_import
63 tests/test-minirst.py not using absolute_import
64 tests/test-minirst.py requires print_function
63 tests/test-minirst.py requires print_function
65 tests/test-parseindex2.py not using absolute_import
64 tests/test-parseindex2.py not using absolute_import
66 tests/test-parseindex2.py requires print_function
65 tests/test-parseindex2.py requires print_function
67 tests/test-pathencode.py not using absolute_import
66 tests/test-pathencode.py not using absolute_import
68 tests/test-pathencode.py requires print_function
67 tests/test-pathencode.py requires print_function
69 tests/test-propertycache.py not using absolute_import
68 tests/test-propertycache.py not using absolute_import
70 tests/test-propertycache.py requires print_function
69 tests/test-propertycache.py requires print_function
71 tests/test-revlog-ancestry.py not using absolute_import
70 tests/test-revlog-ancestry.py not using absolute_import
72 tests/test-revlog-ancestry.py requires print_function
71 tests/test-revlog-ancestry.py requires print_function
73 tests/test-run-tests.py not using absolute_import
72 tests/test-run-tests.py not using absolute_import
74 tests/test-simplemerge.py not using absolute_import
73 tests/test-simplemerge.py not using absolute_import
75 tests/test-status-inprocess.py not using absolute_import
74 tests/test-status-inprocess.py not using absolute_import
76 tests/test-status-inprocess.py requires print_function
75 tests/test-status-inprocess.py requires print_function
77 tests/test-symlink-os-yes-fs-no.py not using absolute_import
76 tests/test-symlink-os-yes-fs-no.py not using absolute_import
78 tests/test-trusted.py not using absolute_import
77 tests/test-trusted.py not using absolute_import
79 tests/test-trusted.py requires print_function
78 tests/test-trusted.py requires print_function
80 tests/test-ui-color.py not using absolute_import
79 tests/test-ui-color.py not using absolute_import
81 tests/test-url.py not using absolute_import
80 tests/test-url.py not using absolute_import
82
81
83 #if py3exe
82 #if py3exe
84 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
83 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs $PYTHON3 contrib/check-py3-compat.py
85 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position *-*: malformed \N character escape (<unknown>, line *) (glob)
84 contrib/check-code.py: invalid syntax: (unicode error) 'unicodeescape' codec can't decode bytes in position *-*: malformed \N character escape (<unknown>, line *) (glob)
86 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
85 doc/hgmanpage.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
87 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
86 hgext/acl.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
88 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
87 hgext/automv.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
89 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
88 hgext/blackbox.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
90 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line *) (glob)
89 hgext/bugzilla.py: error importing module: <ImportError> No module named 'urlparse' (line *) (glob)
91 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
90 hgext/censor.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
92 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
91 hgext/chgserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
93 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
92 hgext/children.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
94 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
93 hgext/churn.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
95 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
94 hgext/clonebundles.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
96 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
95 hgext/color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
97 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
96 hgext/convert/bzr.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
98 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
97 hgext/convert/common.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
99 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
98 hgext/convert/convcmd.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
100 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
99 hgext/convert/cvs.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
101 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
100 hgext/convert/cvsps.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
102 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
101 hgext/convert/darcs.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
103 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
102 hgext/convert/filemap.py: error importing module: <SystemError> Parent module 'hgext.convert' not loaded, cannot perform relative import (line *) (glob)
104 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
103 hgext/convert/git.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
105 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
104 hgext/convert/gnuarch.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
106 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
105 hgext/convert/hg.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
107 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
106 hgext/convert/monotone.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
108 hgext/convert/p*.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
107 hgext/convert/p*.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
109 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
108 hgext/convert/subversion.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
110 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *) (glob)
109 hgext/convert/transport.py: error importing module: <ImportError> No module named 'svn.client' (line *) (glob)
111 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
110 hgext/eol.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
112 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
111 hgext/extdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
113 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:*) (glob)
112 hgext/factotum.py: error importing: <ImportError> No module named 'cStringIO' (error at url.py:*) (glob)
114 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
113 hgext/fetch.py: error importing module: <SyntaxError> invalid syntax (commands.py, line *) (line *) (glob)
115 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
114 hgext/fsmonitor/state.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
116 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
115 hgext/fsmonitor/watchmanclient.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
117 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
116 hgext/gpg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
118 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
117 hgext/graphlog.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
119 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
118 hgext/hgcia.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
120 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
119 hgext/hgk.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
121 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
120 hgext/highlight/highlight.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
122 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
121 hgext/histedit.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
123 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
122 hgext/keyword.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
124 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
123 hgext/largefiles/basestore.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
125 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
124 hgext/largefiles/lfcommands.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
126 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
125 hgext/largefiles/lfutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
127 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
126 hgext/largefiles/localstore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
128 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
127 hgext/largefiles/overrides.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
129 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
128 hgext/largefiles/proto.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
130 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
129 hgext/largefiles/remotestore.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
131 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
130 hgext/largefiles/reposetup.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
132 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
131 hgext/largefiles/uisetup.py: error importing module: <SyntaxError> invalid syntax (archival.py, line *) (line *) (glob)
133 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
132 hgext/largefiles/wirestore.py: error importing module: <ImportError> No module named 'lfutil' (line *) (glob)
134 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
133 hgext/mq.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
135 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
134 hgext/notify.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
136 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
135 hgext/pager.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
137 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
136 hgext/patchbomb.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
138 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
137 hgext/purge.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
139 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
138 hgext/rebase.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
140 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
139 hgext/record.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
141 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
140 hgext/relink.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
142 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
141 hgext/schemes.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
143 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
142 hgext/share.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
144 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
143 hgext/shelve.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
145 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
144 hgext/strip.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
146 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
145 hgext/transplant.py: error importing: <SyntaxError> invalid syntax (bundle*.py, line *) (error at bundlerepo.py:*) (glob)
147 hgext/win*text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
146 hgext/win*text.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
148 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
147 mercurial/archival.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
149 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
148 mercurial/bookmarks.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
150 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
149 mercurial/branchmap.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
151 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
150 mercurial/bundle*.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
152 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
151 mercurial/bundlerepo.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
153 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
152 mercurial/byterange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
154 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
153 mercurial/changegroup.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
155 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
154 mercurial/changelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
156 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
155 mercurial/cmdutil.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
157 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
156 mercurial/commands.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
158 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
157 mercurial/commandserver.py: error importing module: <ImportError> No module named 'SocketServer' (line *) (glob)
159 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
158 mercurial/config.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
160 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
159 mercurial/context.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
161 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
160 mercurial/copies.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
162 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
161 mercurial/crecord.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
163 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
162 mercurial/destutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
164 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
163 mercurial/dirstate.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
165 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
164 mercurial/discovery.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
166 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
165 mercurial/dispatch.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
167 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
166 mercurial/exchange.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
168 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
167 mercurial/extensions.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
169 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
168 mercurial/filelog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
170 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
169 mercurial/filemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
171 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
170 mercurial/fileset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
172 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
171 mercurial/formatter.py: error importing module: <ImportError> No module named 'cPickle' (line *) (glob)
173 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
172 mercurial/graphmod.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
174 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
173 mercurial/help.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
175 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
174 mercurial/hg.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
176 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
175 mercurial/hgweb/common.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
177 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
176 mercurial/hgweb/hgweb_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
178 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
177 mercurial/hgweb/hgwebdir_mod.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
179 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
178 mercurial/hgweb/protocol.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
180 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
179 mercurial/hgweb/request.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
181 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
180 mercurial/hgweb/server.py: error importing module: <ImportError> No module named 'BaseHTTPServer' (line *) (glob)
182 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
181 mercurial/hgweb/webcommands.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
183 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
182 mercurial/hgweb/webutil.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
184 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
183 mercurial/hgweb/wsgicgi.py: error importing module: <SystemError> Parent module 'mercurial.hgweb' not loaded, cannot perform relative import (line *) (glob)
185 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
184 mercurial/hook.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
186 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
185 mercurial/httpclient/_readers.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
187 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
186 mercurial/httpconnection.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
188 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
187 mercurial/httppeer.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
189 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
188 mercurial/keepalive.py: error importing module: <ImportError> No module named 'httplib' (line *) (glob)
190 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
189 mercurial/localrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
191 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
190 mercurial/lock.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
192 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
191 mercurial/mail.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
193 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
192 mercurial/manifest.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
194 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
193 mercurial/match.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
195 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
194 mercurial/mdiff.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
196 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
195 mercurial/merge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
197 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
196 mercurial/minirst.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
198 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
197 mercurial/namespaces.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
199 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
198 mercurial/obsolete.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
200 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
199 mercurial/patch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
201 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
200 mercurial/pathutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
202 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
201 mercurial/peer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
203 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
202 mercurial/pure/mpatch.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
204 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
203 mercurial/pure/parsers.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
205 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
204 mercurial/pushkey.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
206 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
205 mercurial/pvec.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
207 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
206 mercurial/registrar.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
208 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
207 mercurial/repair.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
209 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
208 mercurial/repoview.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
210 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
209 mercurial/revlog.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
211 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
210 mercurial/revset.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
212 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line *) (glob)
211 mercurial/scmutil.py: error importing module: <ImportError> No module named 'Queue' (line *) (glob)
213 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
212 mercurial/scmwindows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
214 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
213 mercurial/similar.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
215 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
214 mercurial/simplemerge.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
216 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
215 mercurial/sshpeer.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
217 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
216 mercurial/sshserver.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
218 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
217 mercurial/sslutil.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
219 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
218 mercurial/statichttprepo.py: error importing module: <ImportError> No module named 'urllib2' (line *) (glob)
220 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
219 mercurial/store.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
221 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
220 mercurial/streamclone.py: error importing: <ImportError> No module named 'Queue' (error at scmutil.py:*) (glob)
222 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
221 mercurial/subrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at cmdutil.py:*) (glob)
223 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
222 mercurial/tagmerge.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
224 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
223 mercurial/tags.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
225 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
224 mercurial/templatefilters.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
226 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
225 mercurial/templatekw.py: error importing: <ImportError> No module named 'cStringIO' (error at patch.py:*) (glob)
227 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
226 mercurial/templater.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
228 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
227 mercurial/transaction.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
229 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
228 mercurial/ui.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
230 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
229 mercurial/unionrepo.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
231 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
230 mercurial/url.py: error importing module: <ImportError> No module named 'cStringIO' (line *) (glob)
232 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
231 mercurial/util.py: error importing: <ImportError> No module named 'cStringIO' (error at parsers.py:*) (glob)
233 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
232 mercurial/verify.py: error importing: <ImportError> No module named 'cStringIO' (error at mpatch.py:*) (glob)
234 mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
233 mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
235 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
234 mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
236 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
235 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
237 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
236 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
238 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
237 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
239 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
238 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
240 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
239 tests/test-minirst.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
241 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
240 tests/test-parseindex*.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
242 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
241 tests/test-propertycache.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
243 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
242 tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
244 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
243 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
245 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
244 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
246
245
247 #endif
246 #endif
@@ -1,257 +1,262 b''
1 from pprint import pprint
1 from __future__ import absolute_import
2 from mercurial import minirst
2 from pprint import (
3 pprint,
4 )
5 from mercurial import (
6 minirst,
7 )
3
8
4 def debugformat(text, form, **kwargs):
9 def debugformat(text, form, **kwargs):
5 if form == 'html':
10 if form == 'html':
6 print "html format:"
11 print "html format:"
7 out = minirst.format(text, style=form, **kwargs)
12 out = minirst.format(text, style=form, **kwargs)
8 else:
13 else:
9 print "%d column format:" % form
14 print "%d column format:" % form
10 out = minirst.format(text, width=form, **kwargs)
15 out = minirst.format(text, width=form, **kwargs)
11
16
12 print "-" * 70
17 print "-" * 70
13 if type(out) == tuple:
18 if type(out) == tuple:
14 print out[0][:-1]
19 print out[0][:-1]
15 print "-" * 70
20 print "-" * 70
16 pprint(out[1])
21 pprint(out[1])
17 else:
22 else:
18 print out[:-1]
23 print out[:-1]
19 print "-" * 70
24 print "-" * 70
20 print
25 print
21
26
22 def debugformats(title, text, **kwargs):
27 def debugformats(title, text, **kwargs):
23 print "== %s ==" % title
28 print "== %s ==" % title
24 debugformat(text, 60, **kwargs)
29 debugformat(text, 60, **kwargs)
25 debugformat(text, 30, **kwargs)
30 debugformat(text, 30, **kwargs)
26 debugformat(text, 'html', **kwargs)
31 debugformat(text, 'html', **kwargs)
27
32
28 paragraphs = """
33 paragraphs = """
29 This is some text in the first paragraph.
34 This is some text in the first paragraph.
30
35
31 A small indented paragraph.
36 A small indented paragraph.
32 It is followed by some lines
37 It is followed by some lines
33 containing random whitespace.
38 containing random whitespace.
34 \n \n \nThe third and final paragraph.
39 \n \n \nThe third and final paragraph.
35 """
40 """
36
41
37 debugformats('paragraphs', paragraphs)
42 debugformats('paragraphs', paragraphs)
38
43
39 definitions = """
44 definitions = """
40 A Term
45 A Term
41 Definition. The indented
46 Definition. The indented
42 lines make up the definition.
47 lines make up the definition.
43 Another Term
48 Another Term
44 Another definition. The final line in the
49 Another definition. The final line in the
45 definition determines the indentation, so
50 definition determines the indentation, so
46 this will be indented with four spaces.
51 this will be indented with four spaces.
47
52
48 A Nested/Indented Term
53 A Nested/Indented Term
49 Definition.
54 Definition.
50 """
55 """
51
56
52 debugformats('definitions', definitions)
57 debugformats('definitions', definitions)
53
58
54 literals = r"""
59 literals = r"""
55 The fully minimized form is the most
60 The fully minimized form is the most
56 convenient form::
61 convenient form::
57
62
58 Hello
63 Hello
59 literal
64 literal
60 world
65 world
61
66
62 In the partially minimized form a paragraph
67 In the partially minimized form a paragraph
63 simply ends with space-double-colon. ::
68 simply ends with space-double-colon. ::
64
69
65 ////////////////////////////////////////
70 ////////////////////////////////////////
66 long un-wrapped line in a literal block
71 long un-wrapped line in a literal block
67 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
72 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
68
73
69 ::
74 ::
70
75
71 This literal block is started with '::',
76 This literal block is started with '::',
72 the so-called expanded form. The paragraph
77 the so-called expanded form. The paragraph
73 with '::' disappears in the final output.
78 with '::' disappears in the final output.
74 """
79 """
75
80
76 debugformats('literals', literals)
81 debugformats('literals', literals)
77
82
78 lists = """
83 lists = """
79 - This is the first list item.
84 - This is the first list item.
80
85
81 Second paragraph in the first list item.
86 Second paragraph in the first list item.
82
87
83 - List items need not be separated
88 - List items need not be separated
84 by a blank line.
89 by a blank line.
85 - And will be rendered without
90 - And will be rendered without
86 one in any case.
91 one in any case.
87
92
88 We can have indented lists:
93 We can have indented lists:
89
94
90 - This is an indented list item
95 - This is an indented list item
91
96
92 - Another indented list item::
97 - Another indented list item::
93
98
94 - A literal block in the middle
99 - A literal block in the middle
95 of an indented list.
100 of an indented list.
96
101
97 (The above is not a list item since we are in the literal block.)
102 (The above is not a list item since we are in the literal block.)
98
103
99 ::
104 ::
100
105
101 Literal block with no indentation (apart from
106 Literal block with no indentation (apart from
102 the two spaces added to all literal blocks).
107 the two spaces added to all literal blocks).
103
108
104 1. This is an enumerated list (first item).
109 1. This is an enumerated list (first item).
105 2. Continuing with the second item.
110 2. Continuing with the second item.
106
111
107 (1) foo
112 (1) foo
108 (2) bar
113 (2) bar
109
114
110 1) Another
115 1) Another
111 2) List
116 2) List
112
117
113 Line blocks are also a form of list:
118 Line blocks are also a form of list:
114
119
115 | This is the first line.
120 | This is the first line.
116 The line continues here.
121 The line continues here.
117 | This is the second line.
122 | This is the second line.
118 """
123 """
119
124
120 debugformats('lists', lists)
125 debugformats('lists', lists)
121
126
122 options = """
127 options = """
123 There is support for simple option lists,
128 There is support for simple option lists,
124 but only with long options:
129 but only with long options:
125
130
126 -X, --exclude filter an option with a short and long option with an argument
131 -X, --exclude filter an option with a short and long option with an argument
127 -I, --include an option with both a short option and a long option
132 -I, --include an option with both a short option and a long option
128 --all Output all.
133 --all Output all.
129 --both Output both (this description is
134 --both Output both (this description is
130 quite long).
135 quite long).
131 --long Output all day long.
136 --long Output all day long.
132
137
133 --par This option has two paragraphs in its description.
138 --par This option has two paragraphs in its description.
134 This is the first.
139 This is the first.
135
140
136 This is the second. Blank lines may be omitted between
141 This is the second. Blank lines may be omitted between
137 options (as above) or left in (as here).
142 options (as above) or left in (as here).
138
143
139
144
140 The next paragraph looks like an option list, but lacks the two-space
145 The next paragraph looks like an option list, but lacks the two-space
141 marker after the option. It is treated as a normal paragraph:
146 marker after the option. It is treated as a normal paragraph:
142
147
143 --foo bar baz
148 --foo bar baz
144 """
149 """
145
150
146 debugformats('options', options)
151 debugformats('options', options)
147
152
148 fields = """
153 fields = """
149 :a: First item.
154 :a: First item.
150 :ab: Second item. Indentation and wrapping
155 :ab: Second item. Indentation and wrapping
151 is handled automatically.
156 is handled automatically.
152
157
153 Next list:
158 Next list:
154
159
155 :small: The larger key below triggers full indentation here.
160 :small: The larger key below triggers full indentation here.
156 :much too large: This key is big enough to get its own line.
161 :much too large: This key is big enough to get its own line.
157 """
162 """
158
163
159 debugformats('fields', fields)
164 debugformats('fields', fields)
160
165
161 containers = """
166 containers = """
162 Normal output.
167 Normal output.
163
168
164 .. container:: debug
169 .. container:: debug
165
170
166 Initial debug output.
171 Initial debug output.
167
172
168 .. container:: verbose
173 .. container:: verbose
169
174
170 Verbose output.
175 Verbose output.
171
176
172 .. container:: debug
177 .. container:: debug
173
178
174 Debug output.
179 Debug output.
175 """
180 """
176
181
177 debugformats('containers (normal)', containers)
182 debugformats('containers (normal)', containers)
178 debugformats('containers (verbose)', containers, keep=['verbose'])
183 debugformats('containers (verbose)', containers, keep=['verbose'])
179 debugformats('containers (debug)', containers, keep=['debug'])
184 debugformats('containers (debug)', containers, keep=['debug'])
180 debugformats('containers (verbose debug)', containers,
185 debugformats('containers (verbose debug)', containers,
181 keep=['verbose', 'debug'])
186 keep=['verbose', 'debug'])
182
187
183 roles = """Please see :hg:`add`."""
188 roles = """Please see :hg:`add`."""
184 debugformats('roles', roles)
189 debugformats('roles', roles)
185
190
186
191
187 sections = """
192 sections = """
188 Title
193 Title
189 =====
194 =====
190
195
191 Section
196 Section
192 -------
197 -------
193
198
194 Subsection
199 Subsection
195 ''''''''''
200 ''''''''''
196
201
197 Markup: ``foo`` and :hg:`help`
202 Markup: ``foo`` and :hg:`help`
198 ------------------------------
203 ------------------------------
199 """
204 """
200 debugformats('sections', sections)
205 debugformats('sections', sections)
201
206
202
207
203 admonitions = """
208 admonitions = """
204 .. note::
209 .. note::
205
210
206 This is a note
211 This is a note
207
212
208 - Bullet 1
213 - Bullet 1
209 - Bullet 2
214 - Bullet 2
210
215
211 .. warning:: This is a warning Second
216 .. warning:: This is a warning Second
212 input line of warning
217 input line of warning
213
218
214 .. danger::
219 .. danger::
215 This is danger
220 This is danger
216 """
221 """
217
222
218 debugformats('admonitions', admonitions)
223 debugformats('admonitions', admonitions)
219
224
220 comments = """
225 comments = """
221 Some text.
226 Some text.
222
227
223 .. A comment
228 .. A comment
224
229
225 .. An indented comment
230 .. An indented comment
226
231
227 Some indented text.
232 Some indented text.
228
233
229 ..
234 ..
230
235
231 Empty comment above
236 Empty comment above
232 """
237 """
233
238
234 debugformats('comments', comments)
239 debugformats('comments', comments)
235
240
236
241
237 data = [['a', 'b', 'c'],
242 data = [['a', 'b', 'c'],
238 ['1', '2', '3'],
243 ['1', '2', '3'],
239 ['foo', 'bar', 'baz this list is very very very long man']]
244 ['foo', 'bar', 'baz this list is very very very long man']]
240
245
241 rst = minirst.maketable(data, 2, True)
246 rst = minirst.maketable(data, 2, True)
242 table = ''.join(rst)
247 table = ''.join(rst)
243
248
244 print table
249 print table
245
250
246 debugformats('table', table)
251 debugformats('table', table)
247
252
248 data = [['s', 'long', 'line\ngoes on here'],
253 data = [['s', 'long', 'line\ngoes on here'],
249 ['', 'xy', 'tried to fix here\n by indenting']]
254 ['', 'xy', 'tried to fix here\n by indenting']]
250
255
251 rst = minirst.maketable(data, 1, False)
256 rst = minirst.maketable(data, 1, False)
252 table = ''.join(rst)
257 table = ''.join(rst)
253
258
254 print table
259 print table
255
260
256 debugformats('table+nl', table)
261 debugformats('table+nl', table)
257
262
General Comments 0
You need to be logged in to leave comments. Login now