Show More
@@ -1,788 +1,789 b'' | |||||
1 | test-abort-checkin.t |
|
1 | test-abort-checkin.t | |
2 | test-absorb-edit-lines.t |
|
2 | test-absorb-edit-lines.t | |
3 | test-absorb-filefixupstate.py |
|
3 | test-absorb-filefixupstate.py | |
4 | test-absorb-phase.t |
|
4 | test-absorb-phase.t | |
5 | test-absorb-rename.t |
|
5 | test-absorb-rename.t | |
6 | test-absorb-strip.t |
|
6 | test-absorb-strip.t | |
7 | test-absorb-unfinished.t |
|
7 | test-absorb-unfinished.t | |
8 | test-absorb.t |
|
8 | test-absorb.t | |
9 | test-acl.t |
|
9 | test-acl.t | |
10 | test-add.t |
|
10 | test-add.t | |
11 | test-addremove-similar.t |
|
11 | test-addremove-similar.t | |
12 | test-addremove.t |
|
12 | test-addremove.t | |
13 | test-alias.t |
|
13 | test-alias.t | |
14 | test-amend-subrepo.t |
|
14 | test-amend-subrepo.t | |
15 | test-amend.t |
|
15 | test-amend.t | |
16 | test-ancestor.py |
|
16 | test-ancestor.py | |
17 | test-annotate.py |
|
17 | test-annotate.py | |
18 | test-annotate.t |
|
18 | test-annotate.t | |
19 | test-arbitraryfilectx.t |
|
19 | test-arbitraryfilectx.t | |
20 | test-archive-symlinks.t |
|
20 | test-archive-symlinks.t | |
21 | test-archive.t |
|
21 | test-archive.t | |
22 | test-atomictempfile.py |
|
22 | test-atomictempfile.py | |
23 | test-audit-path.t |
|
23 | test-audit-path.t | |
24 | test-audit-subrepo.t |
|
24 | test-audit-subrepo.t | |
25 | test-automv.t |
|
25 | test-automv.t | |
26 | test-backout.t |
|
26 | test-backout.t | |
27 | test-backwards-remove.t |
|
27 | test-backwards-remove.t | |
28 | test-bad-extension.t |
|
28 | test-bad-extension.t | |
29 | test-bad-pull.t |
|
29 | test-bad-pull.t | |
30 | test-basic.t |
|
30 | test-basic.t | |
31 | test-batching.py |
|
31 | test-batching.py | |
32 | test-bdiff.py |
|
32 | test-bdiff.py | |
33 | test-bheads.t |
|
33 | test-bheads.t | |
34 | test-bisect.t |
|
34 | test-bisect.t | |
35 | test-bisect2.t |
|
35 | test-bisect2.t | |
36 | test-bisect3.t |
|
36 | test-bisect3.t | |
37 | test-blackbox.t |
|
37 | test-blackbox.t | |
38 | test-bookflow.t |
|
38 | test-bookflow.t | |
39 | test-bookmarks-corner-case.t |
|
39 | test-bookmarks-corner-case.t | |
40 | test-bookmarks-current.t |
|
40 | test-bookmarks-current.t | |
41 | test-bookmarks-merge.t |
|
41 | test-bookmarks-merge.t | |
42 | test-bookmarks-pushpull.t |
|
42 | test-bookmarks-pushpull.t | |
43 | test-bookmarks-rebase.t |
|
43 | test-bookmarks-rebase.t | |
44 | test-bookmarks-strip.t |
|
44 | test-bookmarks-strip.t | |
45 | test-bookmarks.t |
|
45 | test-bookmarks.t | |
46 | test-branch-change.t |
|
46 | test-branch-change.t | |
47 | test-branch-option.t |
|
47 | test-branch-option.t | |
48 | test-branch-tag-confict.t |
|
48 | test-branch-tag-confict.t | |
49 | test-branches.t |
|
49 | test-branches.t | |
50 | test-bugzilla.t |
|
50 | test-bugzilla.t | |
51 | test-bundle-phases.t |
|
51 | test-bundle-phases.t | |
52 | test-bundle-r.t |
|
52 | test-bundle-r.t | |
53 | test-bundle-type.t |
|
53 | test-bundle-type.t | |
54 | test-bundle-vs-outgoing.t |
|
54 | test-bundle-vs-outgoing.t | |
55 | test-bundle.t |
|
55 | test-bundle.t | |
56 | test-bundle2-exchange.t |
|
56 | test-bundle2-exchange.t | |
57 | test-bundle2-format.t |
|
57 | test-bundle2-format.t | |
58 | test-bundle2-multiple-changegroups.t |
|
58 | test-bundle2-multiple-changegroups.t | |
59 | test-bundle2-pushback.t |
|
59 | test-bundle2-pushback.t | |
60 | test-bundle2-remote-changegroup.t |
|
60 | test-bundle2-remote-changegroup.t | |
61 | test-cache-abuse.t |
|
61 | test-cache-abuse.t | |
62 | test-cappedreader.py |
|
62 | test-cappedreader.py | |
63 | test-casecollision-merge.t |
|
63 | test-casecollision-merge.t | |
64 | test-casecollision.t |
|
64 | test-casecollision.t | |
65 | test-casefolding.t |
|
65 | test-casefolding.t | |
66 | test-cat.t |
|
66 | test-cat.t | |
67 | test-cbor.py |
|
67 | test-cbor.py | |
68 | test-censor.t |
|
68 | test-censor.t | |
69 | test-changelog-exec.t |
|
69 | test-changelog-exec.t | |
70 | test-check-code.t |
|
70 | test-check-code.t | |
71 | test-check-commit.t |
|
71 | test-check-commit.t | |
72 | test-check-config.t |
|
72 | test-check-config.t | |
73 | test-check-execute.t |
|
73 | test-check-execute.t | |
74 | test-check-help.t |
|
74 | test-check-help.t | |
75 | test-check-interfaces.py |
|
75 | test-check-interfaces.py | |
76 | test-check-module-imports.t |
|
76 | test-check-module-imports.t | |
77 | test-check-py3-compat.t |
|
77 | test-check-py3-compat.t | |
78 | test-check-pyflakes.t |
|
78 | test-check-pyflakes.t | |
79 | test-check-pylint.t |
|
79 | test-check-pylint.t | |
80 | test-check-shbang.t |
|
80 | test-check-shbang.t | |
81 | test-children.t |
|
81 | test-children.t | |
82 | test-churn.t |
|
82 | test-churn.t | |
83 | test-clone-cgi.t |
|
83 | test-clone-cgi.t | |
84 | test-clone-pull-corruption.t |
|
84 | test-clone-pull-corruption.t | |
85 | test-clone-r.t |
|
85 | test-clone-r.t | |
86 | test-clone-uncompressed.t |
|
86 | test-clone-uncompressed.t | |
87 | test-clone-update-order.t |
|
87 | test-clone-update-order.t | |
88 | test-clone.t |
|
88 | test-clone.t | |
89 | test-clonebundles.t |
|
89 | test-clonebundles.t | |
90 | test-close-head.t |
|
90 | test-close-head.t | |
91 | test-commandserver.t |
|
91 | test-commandserver.t | |
92 | test-commit-amend.t |
|
92 | test-commit-amend.t | |
93 | test-commit-interactive-curses.t |
|
93 | test-commit-interactive-curses.t | |
94 | test-commit-interactive.t |
|
94 | test-commit-interactive.t | |
95 | test-commit-multiple.t |
|
95 | test-commit-multiple.t | |
96 | test-commit-unresolved.t |
|
96 | test-commit-unresolved.t | |
97 | test-commit.t |
|
97 | test-commit.t | |
98 | test-committer.t |
|
98 | test-committer.t | |
99 | test-completion.t |
|
99 | test-completion.t | |
100 | test-config-env.py |
|
100 | test-config-env.py | |
101 | test-config.t |
|
101 | test-config.t | |
102 | test-conflict.t |
|
102 | test-conflict.t | |
103 | test-confused-revert.t |
|
103 | test-confused-revert.t | |
104 | test-context-metadata.t |
|
104 | test-context-metadata.t | |
105 | test-context.py |
|
105 | test-context.py | |
106 | test-contrib-check-code.t |
|
106 | test-contrib-check-code.t | |
107 | test-contrib-check-commit.t |
|
107 | test-contrib-check-commit.t | |
108 | test-contrib-dumprevlog.t |
|
108 | test-contrib-dumprevlog.t | |
109 | test-contrib-emacs.t |
|
109 | test-contrib-emacs.t | |
110 | test-contrib-perf.t |
|
110 | test-contrib-perf.t | |
111 | test-contrib-relnotes.t |
|
111 | test-contrib-relnotes.t | |
112 | test-contrib-testparseutil.t |
|
112 | test-contrib-testparseutil.t | |
113 | test-contrib.t |
|
113 | test-contrib.t | |
114 | test-convert-authormap.t |
|
114 | test-convert-authormap.t | |
115 | test-convert-clonebranches.t |
|
115 | test-convert-clonebranches.t | |
116 | test-convert-cvs-branch.t |
|
116 | test-convert-cvs-branch.t | |
117 | test-convert-cvs-detectmerge.t |
|
117 | test-convert-cvs-detectmerge.t | |
118 | test-convert-cvs-synthetic.t |
|
118 | test-convert-cvs-synthetic.t | |
119 | test-convert-cvs.t |
|
119 | test-convert-cvs.t | |
120 | test-convert-cvsnt-mergepoints.t |
|
120 | test-convert-cvsnt-mergepoints.t | |
121 | test-convert-datesort.t |
|
121 | test-convert-datesort.t | |
122 | test-convert-filemap.t |
|
122 | test-convert-filemap.t | |
123 | test-convert-git.t |
|
123 | test-convert-git.t | |
124 | test-convert-hg-sink.t |
|
124 | test-convert-hg-sink.t | |
125 | test-convert-hg-source.t |
|
125 | test-convert-hg-source.t | |
126 | test-convert-hg-startrev.t |
|
126 | test-convert-hg-startrev.t | |
127 | test-convert-identity.t |
|
127 | test-convert-identity.t | |
128 | test-convert-mtn.t |
|
128 | test-convert-mtn.t | |
129 | test-convert-splicemap.t |
|
129 | test-convert-splicemap.t | |
130 | test-convert-svn-sink.t |
|
130 | test-convert-svn-sink.t | |
131 | test-convert-tagsbranch-topology.t |
|
131 | test-convert-tagsbranch-topology.t | |
132 | test-convert.t |
|
132 | test-convert.t | |
133 | test-copies-in-changeset.t |
|
133 | test-copies-in-changeset.t | |
134 | test-copies-unrelated.t |
|
134 | test-copies-unrelated.t | |
135 | test-copies.t |
|
135 | test-copies.t | |
136 | test-copy-move-merge.t |
|
136 | test-copy-move-merge.t | |
137 | test-copy.t |
|
137 | test-copy.t | |
138 | test-copytrace-heuristics.t |
|
138 | test-copytrace-heuristics.t | |
139 | test-custom-filters.t |
|
139 | test-custom-filters.t | |
140 | test-debugbuilddag.t |
|
140 | test-debugbuilddag.t | |
141 | test-debugbundle.t |
|
141 | test-debugbundle.t | |
142 | test-debugcommands.t |
|
142 | test-debugcommands.t | |
143 | test-debugextensions.t |
|
143 | test-debugextensions.t | |
144 | test-debugindexdot.t |
|
144 | test-debugindexdot.t | |
145 | test-debugrename.t |
|
145 | test-debugrename.t | |
146 | test-default-push.t |
|
146 | test-default-push.t | |
147 | test-demandimport.py |
|
147 | test-demandimport.py | |
148 | test-devel-warnings.t |
|
148 | test-devel-warnings.t | |
149 | test-diff-antipatience.t |
|
149 | test-diff-antipatience.t | |
150 | test-diff-binary-file.t |
|
150 | test-diff-binary-file.t | |
151 | test-diff-change.t |
|
151 | test-diff-change.t | |
152 | test-diff-color.t |
|
152 | test-diff-color.t | |
153 | test-diff-copy-depth.t |
|
153 | test-diff-copy-depth.t | |
154 | test-diff-hashes.t |
|
154 | test-diff-hashes.t | |
155 | test-diff-ignore-whitespace.t |
|
155 | test-diff-ignore-whitespace.t | |
156 | test-diff-indent-heuristic.t |
|
156 | test-diff-indent-heuristic.t | |
157 | test-diff-issue2761.t |
|
157 | test-diff-issue2761.t | |
158 | test-diff-newlines.t |
|
158 | test-diff-newlines.t | |
159 | test-diff-reverse.t |
|
159 | test-diff-reverse.t | |
160 | test-diff-subdir.t |
|
160 | test-diff-subdir.t | |
161 | test-diff-unified.t |
|
161 | test-diff-unified.t | |
162 | test-diff-upgrade.t |
|
162 | test-diff-upgrade.t | |
163 | test-diffdir.t |
|
163 | test-diffdir.t | |
164 | test-diffstat.t |
|
164 | test-diffstat.t | |
165 | test-directaccess.t |
|
165 | test-directaccess.t | |
166 | test-dirstate-backup.t |
|
166 | test-dirstate-backup.t | |
167 | test-dirstate-nonnormalset.t |
|
167 | test-dirstate-nonnormalset.t | |
168 | test-dirstate-race.t |
|
168 | test-dirstate-race.t | |
169 | test-dirstate-race2.t |
|
169 | test-dirstate-race2.t | |
170 | test-dirstate.t |
|
170 | test-dirstate.t | |
171 | test-dispatch.py |
|
171 | test-dispatch.py | |
172 | test-dispatch.t |
|
172 | test-dispatch.t | |
173 | test-doctest.py |
|
173 | test-doctest.py | |
174 | test-double-merge.t |
|
174 | test-double-merge.t | |
175 | test-drawdag.t |
|
175 | test-drawdag.t | |
176 | test-duplicateoptions.py |
|
176 | test-duplicateoptions.py | |
177 | test-editor-filename.t |
|
177 | test-editor-filename.t | |
178 | test-empty-dir.t |
|
178 | test-empty-dir.t | |
179 | test-empty-file.t |
|
179 | test-empty-file.t | |
180 | test-empty-group.t |
|
180 | test-empty-group.t | |
181 | test-empty.t |
|
181 | test-empty.t | |
182 | test-encode.t |
|
182 | test-encode.t | |
183 | test-encoding-align.t |
|
183 | test-encoding-align.t | |
184 | test-encoding-func.py |
|
184 | test-encoding-func.py | |
185 | test-encoding-textwrap.t |
|
185 | test-encoding-textwrap.t | |
186 | test-encoding.t |
|
186 | test-encoding.t | |
187 | test-eol-add.t |
|
187 | test-eol-add.t | |
188 | test-eol-clone.t |
|
188 | test-eol-clone.t | |
189 | test-eol-hook.t |
|
189 | test-eol-hook.t | |
190 | test-eol-patch.t |
|
190 | test-eol-patch.t | |
191 | test-eol-tag.t |
|
191 | test-eol-tag.t | |
192 | test-eol-update.t |
|
192 | test-eol-update.t | |
193 | test-eol.t |
|
193 | test-eol.t | |
194 | test-eolfilename.t |
|
194 | test-eolfilename.t | |
195 | test-excessive-merge.t |
|
195 | test-excessive-merge.t | |
196 | test-exchange-obsmarkers-case-A1.t |
|
196 | test-exchange-obsmarkers-case-A1.t | |
197 | test-exchange-obsmarkers-case-A2.t |
|
197 | test-exchange-obsmarkers-case-A2.t | |
198 | test-exchange-obsmarkers-case-A3.t |
|
198 | test-exchange-obsmarkers-case-A3.t | |
199 | test-exchange-obsmarkers-case-A4.t |
|
199 | test-exchange-obsmarkers-case-A4.t | |
200 | test-exchange-obsmarkers-case-A5.t |
|
200 | test-exchange-obsmarkers-case-A5.t | |
201 | test-exchange-obsmarkers-case-A6.t |
|
201 | test-exchange-obsmarkers-case-A6.t | |
202 | test-exchange-obsmarkers-case-A7.t |
|
202 | test-exchange-obsmarkers-case-A7.t | |
203 | test-exchange-obsmarkers-case-B1.t |
|
203 | test-exchange-obsmarkers-case-B1.t | |
204 | test-exchange-obsmarkers-case-B2.t |
|
204 | test-exchange-obsmarkers-case-B2.t | |
205 | test-exchange-obsmarkers-case-B3.t |
|
205 | test-exchange-obsmarkers-case-B3.t | |
206 | test-exchange-obsmarkers-case-B4.t |
|
206 | test-exchange-obsmarkers-case-B4.t | |
207 | test-exchange-obsmarkers-case-B5.t |
|
207 | test-exchange-obsmarkers-case-B5.t | |
208 | test-exchange-obsmarkers-case-B6.t |
|
208 | test-exchange-obsmarkers-case-B6.t | |
209 | test-exchange-obsmarkers-case-B7.t |
|
209 | test-exchange-obsmarkers-case-B7.t | |
210 | test-exchange-obsmarkers-case-C1.t |
|
210 | test-exchange-obsmarkers-case-C1.t | |
211 | test-exchange-obsmarkers-case-C2.t |
|
211 | test-exchange-obsmarkers-case-C2.t | |
212 | test-exchange-obsmarkers-case-C3.t |
|
212 | test-exchange-obsmarkers-case-C3.t | |
213 | test-exchange-obsmarkers-case-C4.t |
|
213 | test-exchange-obsmarkers-case-C4.t | |
214 | test-exchange-obsmarkers-case-D1.t |
|
214 | test-exchange-obsmarkers-case-D1.t | |
215 | test-exchange-obsmarkers-case-D2.t |
|
215 | test-exchange-obsmarkers-case-D2.t | |
216 | test-exchange-obsmarkers-case-D3.t |
|
216 | test-exchange-obsmarkers-case-D3.t | |
217 | test-exchange-obsmarkers-case-D4.t |
|
217 | test-exchange-obsmarkers-case-D4.t | |
218 | test-execute-bit.t |
|
218 | test-execute-bit.t | |
219 | test-export.t |
|
219 | test-export.t | |
220 | test-extdata.t |
|
220 | test-extdata.t | |
221 | test-extdiff.t |
|
221 | test-extdiff.t | |
222 | test-extension-timing.t |
|
222 | test-extension-timing.t | |
223 | test-extension.t |
|
223 | test-extension.t | |
224 | test-extensions-afterloaded.t |
|
224 | test-extensions-afterloaded.t | |
225 | test-extensions-wrapfunction.py |
|
225 | test-extensions-wrapfunction.py | |
226 | test-extra-filelog-entry.t |
|
226 | test-extra-filelog-entry.t | |
227 | test-fastannotate-corrupt.t |
|
227 | test-fastannotate-corrupt.t | |
228 | test-fastannotate-diffopts.t |
|
228 | test-fastannotate-diffopts.t | |
229 | test-fastannotate-hg.t |
|
229 | test-fastannotate-hg.t | |
230 | test-fastannotate-perfhack.t |
|
230 | test-fastannotate-perfhack.t | |
231 | test-fastannotate-protocol.t |
|
231 | test-fastannotate-protocol.t | |
232 | test-fastannotate-renames.t |
|
232 | test-fastannotate-renames.t | |
233 | test-fastannotate-revmap.py |
|
233 | test-fastannotate-revmap.py | |
234 | test-fastannotate.t |
|
234 | test-fastannotate.t | |
235 | test-fetch.t |
|
235 | test-fetch.t | |
236 | test-filebranch.t |
|
236 | test-filebranch.t | |
237 | test-filecache.py |
|
237 | test-filecache.py | |
238 | test-filelog.py |
|
238 | test-filelog.py | |
239 | test-fileset-generated.t |
|
239 | test-fileset-generated.t | |
240 | test-fileset.t |
|
240 | test-fileset.t | |
241 | test-fix-metadata.t |
|
241 | test-fix-metadata.t | |
242 | test-fix-topology.t |
|
242 | test-fix-topology.t | |
243 | test-fix.t |
|
243 | test-fix.t | |
244 | test-flagprocessor.t |
|
244 | test-flagprocessor.t | |
245 | test-flags.t |
|
245 | test-flags.t | |
246 | test-fncache.t |
|
246 | test-fncache.t | |
247 | test-gendoc-da.t |
|
247 | test-gendoc-da.t | |
248 | test-gendoc-de.t |
|
248 | test-gendoc-de.t | |
249 | test-gendoc-el.t |
|
249 | test-gendoc-el.t | |
250 | test-gendoc-fr.t |
|
250 | test-gendoc-fr.t | |
251 | test-gendoc-it.t |
|
251 | test-gendoc-it.t | |
252 | test-gendoc-ja.t |
|
252 | test-gendoc-ja.t | |
253 | test-gendoc-pt_BR.t |
|
253 | test-gendoc-pt_BR.t | |
254 | test-gendoc-ro.t |
|
254 | test-gendoc-ro.t | |
255 | test-gendoc-ru.t |
|
255 | test-gendoc-ru.t | |
256 | test-gendoc-sv.t |
|
256 | test-gendoc-sv.t | |
257 | test-gendoc-zh_CN.t |
|
257 | test-gendoc-zh_CN.t | |
258 | test-gendoc-zh_TW.t |
|
258 | test-gendoc-zh_TW.t | |
259 | test-gendoc.t |
|
259 | test-gendoc.t | |
260 | test-generaldelta.t |
|
260 | test-generaldelta.t | |
261 | test-getbundle.t |
|
261 | test-getbundle.t | |
262 | test-git-export.t |
|
262 | test-git-export.t | |
263 | test-githelp.t |
|
263 | test-githelp.t | |
264 | test-globalopts.t |
|
264 | test-globalopts.t | |
265 | test-glog-beautifygraph.t |
|
265 | test-glog-beautifygraph.t | |
266 | test-glog-topological.t |
|
266 | test-glog-topological.t | |
267 | test-glog.t |
|
267 | test-glog.t | |
268 | test-gpg.t |
|
268 | test-gpg.t | |
269 | test-graft.t |
|
269 | test-graft.t | |
270 | test-grep.t |
|
270 | test-grep.t | |
271 | test-hardlinks.t |
|
271 | test-hardlinks.t | |
272 | test-help-hide.t |
|
272 | test-help-hide.t | |
273 | test-help.t |
|
273 | test-help.t | |
274 | test-hg-parseurl.py |
|
274 | test-hg-parseurl.py | |
275 | test-hghave.t |
|
275 | test-hghave.t | |
276 | test-hgignore.t |
|
276 | test-hgignore.t | |
277 | test-hgk.t |
|
277 | test-hgk.t | |
278 | test-hgrc.t |
|
278 | test-hgrc.t | |
279 | test-hgweb-annotate-whitespace.t |
|
279 | test-hgweb-annotate-whitespace.t | |
280 | test-hgweb-auth.py |
|
280 | test-hgweb-auth.py | |
281 | test-hgweb-bundle.t |
|
281 | test-hgweb-bundle.t | |
282 | test-hgweb-commands.t |
|
282 | test-hgweb-commands.t | |
283 | test-hgweb-csp.t |
|
283 | test-hgweb-csp.t | |
284 | test-hgweb-descend-empties.t |
|
284 | test-hgweb-descend-empties.t | |
285 | test-hgweb-diffs.t |
|
285 | test-hgweb-diffs.t | |
286 | test-hgweb-empty.t |
|
286 | test-hgweb-empty.t | |
287 | test-hgweb-filelog.t |
|
287 | test-hgweb-filelog.t | |
288 | test-hgweb-json.t |
|
288 | test-hgweb-json.t | |
289 | test-hgweb-no-path-info.t |
|
289 | test-hgweb-no-path-info.t | |
290 | test-hgweb-no-request-uri.t |
|
290 | test-hgweb-no-request-uri.t | |
291 | test-hgweb-non-interactive.t |
|
291 | test-hgweb-non-interactive.t | |
292 | test-hgweb-raw.t |
|
292 | test-hgweb-raw.t | |
293 | test-hgweb-removed.t |
|
293 | test-hgweb-removed.t | |
294 | test-hgweb-symrev.t |
|
294 | test-hgweb-symrev.t | |
295 | test-hgweb.t |
|
295 | test-hgweb.t | |
296 | test-hgwebdir-paths.py |
|
296 | test-hgwebdir-paths.py | |
297 | test-hgwebdir.t |
|
297 | test-hgwebdir.t | |
298 | test-hgwebdirsym.t |
|
298 | test-hgwebdirsym.t | |
|
299 | test-highlight.t | |||
299 | test-histedit-arguments.t |
|
300 | test-histedit-arguments.t | |
300 | test-histedit-base.t |
|
301 | test-histedit-base.t | |
301 | test-histedit-bookmark-motion.t |
|
302 | test-histedit-bookmark-motion.t | |
302 | test-histedit-commute.t |
|
303 | test-histedit-commute.t | |
303 | test-histedit-drop.t |
|
304 | test-histedit-drop.t | |
304 | test-histedit-edit.t |
|
305 | test-histedit-edit.t | |
305 | test-histedit-fold-non-commute.t |
|
306 | test-histedit-fold-non-commute.t | |
306 | test-histedit-fold.t |
|
307 | test-histedit-fold.t | |
307 | test-histedit-merge-tools.t |
|
308 | test-histedit-merge-tools.t | |
308 | test-histedit-no-backup.t |
|
309 | test-histedit-no-backup.t | |
309 | test-histedit-no-change.t |
|
310 | test-histedit-no-change.t | |
310 | test-histedit-non-commute-abort.t |
|
311 | test-histedit-non-commute-abort.t | |
311 | test-histedit-non-commute.t |
|
312 | test-histedit-non-commute.t | |
312 | test-histedit-obsolete.t |
|
313 | test-histedit-obsolete.t | |
313 | test-histedit-outgoing.t |
|
314 | test-histedit-outgoing.t | |
314 | test-histedit-templates.t |
|
315 | test-histedit-templates.t | |
315 | test-http-api-httpv2.t |
|
316 | test-http-api-httpv2.t | |
316 | test-http-api.t |
|
317 | test-http-api.t | |
317 | test-http-bad-server.t |
|
318 | test-http-bad-server.t | |
318 | test-http-branchmap.t |
|
319 | test-http-branchmap.t | |
319 | test-http-bundle1.t |
|
320 | test-http-bundle1.t | |
320 | test-http-clone-r.t |
|
321 | test-http-clone-r.t | |
321 | test-http-permissions.t |
|
322 | test-http-permissions.t | |
322 | test-http-protocol.t |
|
323 | test-http-protocol.t | |
323 | test-http-proxy.t |
|
324 | test-http-proxy.t | |
324 | test-http.t |
|
325 | test-http.t | |
325 | test-https.t |
|
326 | test-https.t | |
326 | test-hybridencode.py |
|
327 | test-hybridencode.py | |
327 | test-i18n.t |
|
328 | test-i18n.t | |
328 | test-identify.t |
|
329 | test-identify.t | |
329 | test-impexp-branch.t |
|
330 | test-impexp-branch.t | |
330 | test-import-bypass.t |
|
331 | test-import-bypass.t | |
331 | test-import-context.t |
|
332 | test-import-context.t | |
332 | test-import-eol.t |
|
333 | test-import-eol.t | |
333 | test-import-git.t |
|
334 | test-import-git.t | |
334 | test-import-merge.t |
|
335 | test-import-merge.t | |
335 | test-import-unknown.t |
|
336 | test-import-unknown.t | |
336 | test-import.t |
|
337 | test-import.t | |
337 | test-imports-checker.t |
|
338 | test-imports-checker.t | |
338 | test-incoming-outgoing.t |
|
339 | test-incoming-outgoing.t | |
339 | test-infinitepush-bundlestore.t |
|
340 | test-infinitepush-bundlestore.t | |
340 | test-infinitepush-ci.t |
|
341 | test-infinitepush-ci.t | |
341 | test-infinitepush.t |
|
342 | test-infinitepush.t | |
342 | test-inherit-mode.t |
|
343 | test-inherit-mode.t | |
343 | test-init.t |
|
344 | test-init.t | |
344 | test-install.t |
|
345 | test-install.t | |
345 | test-issue1089.t |
|
346 | test-issue1089.t | |
346 | test-issue1102.t |
|
347 | test-issue1102.t | |
347 | test-issue1175.t |
|
348 | test-issue1175.t | |
348 | test-issue1306.t |
|
349 | test-issue1306.t | |
349 | test-issue1438.t |
|
350 | test-issue1438.t | |
350 | test-issue1502.t |
|
351 | test-issue1502.t | |
351 | test-issue1802.t |
|
352 | test-issue1802.t | |
352 | test-issue1877.t |
|
353 | test-issue1877.t | |
353 | test-issue1993.t |
|
354 | test-issue1993.t | |
354 | test-issue2137.t |
|
355 | test-issue2137.t | |
355 | test-issue3084.t |
|
356 | test-issue3084.t | |
356 | test-issue4074.t |
|
357 | test-issue4074.t | |
357 | test-issue522.t |
|
358 | test-issue522.t | |
358 | test-issue586.t |
|
359 | test-issue586.t | |
359 | test-issue5979.t |
|
360 | test-issue5979.t | |
360 | test-issue612.t |
|
361 | test-issue612.t | |
361 | test-issue619.t |
|
362 | test-issue619.t | |
362 | test-issue660.t |
|
363 | test-issue660.t | |
363 | test-issue672.t |
|
364 | test-issue672.t | |
364 | test-issue842.t |
|
365 | test-issue842.t | |
365 | test-journal-exists.t |
|
366 | test-journal-exists.t | |
366 | test-journal-share.t |
|
367 | test-journal-share.t | |
367 | test-journal.t |
|
368 | test-journal.t | |
368 | test-keyword.t |
|
369 | test-keyword.t | |
369 | test-known.t |
|
370 | test-known.t | |
370 | test-largefiles-cache.t |
|
371 | test-largefiles-cache.t | |
371 | test-largefiles-misc.t |
|
372 | test-largefiles-misc.t | |
372 | test-largefiles-small-disk.t |
|
373 | test-largefiles-small-disk.t | |
373 | test-largefiles-update.t |
|
374 | test-largefiles-update.t | |
374 | test-largefiles-wireproto.t |
|
375 | test-largefiles-wireproto.t | |
375 | test-largefiles.t |
|
376 | test-largefiles.t | |
376 | test-lfconvert.t |
|
377 | test-lfconvert.t | |
377 | test-lfs-bundle.t |
|
378 | test-lfs-bundle.t | |
378 | test-lfs-largefiles.t |
|
379 | test-lfs-largefiles.t | |
379 | test-lfs-pointer.py |
|
380 | test-lfs-pointer.py | |
380 | test-lfs-serve.t |
|
381 | test-lfs-serve.t | |
381 | test-lfs-test-server.t |
|
382 | test-lfs-test-server.t | |
382 | test-lfs.t |
|
383 | test-lfs.t | |
383 | test-linelog.py |
|
384 | test-linelog.py | |
384 | test-linerange.py |
|
385 | test-linerange.py | |
385 | test-locate.t |
|
386 | test-locate.t | |
386 | test-lock-badness.t |
|
387 | test-lock-badness.t | |
387 | test-lock.py |
|
388 | test-lock.py | |
388 | test-log-exthook.t |
|
389 | test-log-exthook.t | |
389 | test-log-linerange.t |
|
390 | test-log-linerange.t | |
390 | test-log.t |
|
391 | test-log.t | |
391 | test-logexchange.t |
|
392 | test-logexchange.t | |
392 | test-logtoprocess.t |
|
393 | test-logtoprocess.t | |
393 | test-lrucachedict.py |
|
394 | test-lrucachedict.py | |
394 | test-mactext.t |
|
395 | test-mactext.t | |
395 | test-mailmap.t |
|
396 | test-mailmap.t | |
396 | test-manifest-merging.t |
|
397 | test-manifest-merging.t | |
397 | test-manifest.py |
|
398 | test-manifest.py | |
398 | test-manifest.t |
|
399 | test-manifest.t | |
399 | test-match.py |
|
400 | test-match.py | |
400 | test-mdiff.py |
|
401 | test-mdiff.py | |
401 | test-merge-changedelete.t |
|
402 | test-merge-changedelete.t | |
402 | test-merge-closedheads.t |
|
403 | test-merge-closedheads.t | |
403 | test-merge-commit.t |
|
404 | test-merge-commit.t | |
404 | test-merge-criss-cross.t |
|
405 | test-merge-criss-cross.t | |
405 | test-merge-default.t |
|
406 | test-merge-default.t | |
406 | test-merge-force.t |
|
407 | test-merge-force.t | |
407 | test-merge-halt.t |
|
408 | test-merge-halt.t | |
408 | test-merge-internal-tools-pattern.t |
|
409 | test-merge-internal-tools-pattern.t | |
409 | test-merge-local.t |
|
410 | test-merge-local.t | |
410 | test-merge-no-file-change.t |
|
411 | test-merge-no-file-change.t | |
411 | test-merge-remove.t |
|
412 | test-merge-remove.t | |
412 | test-merge-revert.t |
|
413 | test-merge-revert.t | |
413 | test-merge-revert2.t |
|
414 | test-merge-revert2.t | |
414 | test-merge-subrepos.t |
|
415 | test-merge-subrepos.t | |
415 | test-merge-symlinks.t |
|
416 | test-merge-symlinks.t | |
416 | test-merge-tools.t |
|
417 | test-merge-tools.t | |
417 | test-merge-types.t |
|
418 | test-merge-types.t | |
418 | test-merge1.t |
|
419 | test-merge1.t | |
419 | test-merge10.t |
|
420 | test-merge10.t | |
420 | test-merge2.t |
|
421 | test-merge2.t | |
421 | test-merge4.t |
|
422 | test-merge4.t | |
422 | test-merge5.t |
|
423 | test-merge5.t | |
423 | test-merge6.t |
|
424 | test-merge6.t | |
424 | test-merge7.t |
|
425 | test-merge7.t | |
425 | test-merge8.t |
|
426 | test-merge8.t | |
426 | test-merge9.t |
|
427 | test-merge9.t | |
427 | test-minifileset.py |
|
428 | test-minifileset.py | |
428 | test-minirst.py |
|
429 | test-minirst.py | |
429 | test-missing-capability.t |
|
430 | test-missing-capability.t | |
430 | test-mq-eol.t |
|
431 | test-mq-eol.t | |
431 | test-mq-git.t |
|
432 | test-mq-git.t | |
432 | test-mq-guards.t |
|
433 | test-mq-guards.t | |
433 | test-mq-header-date.t |
|
434 | test-mq-header-date.t | |
434 | test-mq-header-from.t |
|
435 | test-mq-header-from.t | |
435 | test-mq-merge.t |
|
436 | test-mq-merge.t | |
436 | test-mq-missingfiles.t |
|
437 | test-mq-missingfiles.t | |
437 | test-mq-pull-from-bundle.t |
|
438 | test-mq-pull-from-bundle.t | |
438 | test-mq-qclone-http.t |
|
439 | test-mq-qclone-http.t | |
439 | test-mq-qdelete.t |
|
440 | test-mq-qdelete.t | |
440 | test-mq-qdiff.t |
|
441 | test-mq-qdiff.t | |
441 | test-mq-qfold.t |
|
442 | test-mq-qfold.t | |
442 | test-mq-qgoto.t |
|
443 | test-mq-qgoto.t | |
443 | test-mq-qimport-fail-cleanup.t |
|
444 | test-mq-qimport-fail-cleanup.t | |
444 | test-mq-qimport.t |
|
445 | test-mq-qimport.t | |
445 | test-mq-qnew.t |
|
446 | test-mq-qnew.t | |
446 | test-mq-qpush-exact.t |
|
447 | test-mq-qpush-exact.t | |
447 | test-mq-qpush-fail.t |
|
448 | test-mq-qpush-fail.t | |
448 | test-mq-qqueue.t |
|
449 | test-mq-qqueue.t | |
449 | test-mq-qrefresh-interactive.t |
|
450 | test-mq-qrefresh-interactive.t | |
450 | test-mq-qrefresh-replace-log-message.t |
|
451 | test-mq-qrefresh-replace-log-message.t | |
451 | test-mq-qrefresh.t |
|
452 | test-mq-qrefresh.t | |
452 | test-mq-qrename.t |
|
453 | test-mq-qrename.t | |
453 | test-mq-qsave.t |
|
454 | test-mq-qsave.t | |
454 | test-mq-safety.t |
|
455 | test-mq-safety.t | |
455 | test-mq-subrepo-svn.t |
|
456 | test-mq-subrepo-svn.t | |
456 | test-mq-subrepo.t |
|
457 | test-mq-subrepo.t | |
457 | test-mq-symlinks.t |
|
458 | test-mq-symlinks.t | |
458 | test-mq.t |
|
459 | test-mq.t | |
459 | test-mv-cp-st-diff.t |
|
460 | test-mv-cp-st-diff.t | |
460 | test-narrow-acl.t |
|
461 | test-narrow-acl.t | |
461 | test-narrow-archive.t |
|
462 | test-narrow-archive.t | |
462 | test-narrow-clone-no-ellipsis.t |
|
463 | test-narrow-clone-no-ellipsis.t | |
463 | test-narrow-clone-non-narrow-server.t |
|
464 | test-narrow-clone-non-narrow-server.t | |
464 | test-narrow-clone-nonlinear.t |
|
465 | test-narrow-clone-nonlinear.t | |
465 | test-narrow-clone-stream.t |
|
466 | test-narrow-clone-stream.t | |
466 | test-narrow-clone.t |
|
467 | test-narrow-clone.t | |
467 | test-narrow-commit.t |
|
468 | test-narrow-commit.t | |
468 | test-narrow-copies.t |
|
469 | test-narrow-copies.t | |
469 | test-narrow-debugcommands.t |
|
470 | test-narrow-debugcommands.t | |
470 | test-narrow-debugrebuilddirstate.t |
|
471 | test-narrow-debugrebuilddirstate.t | |
471 | test-narrow-exchange-merges.t |
|
472 | test-narrow-exchange-merges.t | |
472 | test-narrow-exchange.t |
|
473 | test-narrow-exchange.t | |
473 | test-narrow-expanddirstate.t |
|
474 | test-narrow-expanddirstate.t | |
474 | test-narrow-merge.t |
|
475 | test-narrow-merge.t | |
475 | test-narrow-patch.t |
|
476 | test-narrow-patch.t | |
476 | test-narrow-patterns.t |
|
477 | test-narrow-patterns.t | |
477 | test-narrow-pull.t |
|
478 | test-narrow-pull.t | |
478 | test-narrow-rebase.t |
|
479 | test-narrow-rebase.t | |
479 | test-narrow-shallow-merges.t |
|
480 | test-narrow-shallow-merges.t | |
480 | test-narrow-shallow.t |
|
481 | test-narrow-shallow.t | |
481 | test-narrow-share.t |
|
482 | test-narrow-share.t | |
482 | test-narrow-sparse.t |
|
483 | test-narrow-sparse.t | |
483 | test-narrow-strip.t |
|
484 | test-narrow-strip.t | |
484 | test-narrow-trackedcmd.t |
|
485 | test-narrow-trackedcmd.t | |
485 | test-narrow-update.t |
|
486 | test-narrow-update.t | |
486 | test-narrow-widen-no-ellipsis.t |
|
487 | test-narrow-widen-no-ellipsis.t | |
487 | test-narrow-widen.t |
|
488 | test-narrow-widen.t | |
488 | test-narrow.t |
|
489 | test-narrow.t | |
489 | test-nested-repo.t |
|
490 | test-nested-repo.t | |
490 | test-newbranch.t |
|
491 | test-newbranch.t | |
491 | test-newcgi.t |
|
492 | test-newcgi.t | |
492 | test-newercgi.t |
|
493 | test-newercgi.t | |
493 | test-nointerrupt.t |
|
494 | test-nointerrupt.t | |
494 | test-notify-changegroup.t |
|
495 | test-notify-changegroup.t | |
495 | test-obshistory.t |
|
496 | test-obshistory.t | |
496 | test-obsmarker-template.t |
|
497 | test-obsmarker-template.t | |
497 | test-obsmarkers-effectflag.t |
|
498 | test-obsmarkers-effectflag.t | |
498 | test-obsolete-bounds-checking.t |
|
499 | test-obsolete-bounds-checking.t | |
499 | test-obsolete-bundle-strip.t |
|
500 | test-obsolete-bundle-strip.t | |
500 | test-obsolete-changeset-exchange.t |
|
501 | test-obsolete-changeset-exchange.t | |
501 | test-obsolete-checkheads.t |
|
502 | test-obsolete-checkheads.t | |
502 | test-obsolete-distributed.t |
|
503 | test-obsolete-distributed.t | |
503 | test-obsolete-divergent.t |
|
504 | test-obsolete-divergent.t | |
504 | test-obsolete-tag-cache.t |
|
505 | test-obsolete-tag-cache.t | |
505 | test-obsolete.t |
|
506 | test-obsolete.t | |
506 | test-oldcgi.t |
|
507 | test-oldcgi.t | |
507 | test-origbackup-conflict.t |
|
508 | test-origbackup-conflict.t | |
508 | test-pager-legacy.t |
|
509 | test-pager-legacy.t | |
509 | test-pager.t |
|
510 | test-pager.t | |
510 | test-parents.t |
|
511 | test-parents.t | |
511 | test-parse-date.t |
|
512 | test-parse-date.t | |
512 | test-parseindex.t |
|
513 | test-parseindex.t | |
513 | test-parseindex2.py |
|
514 | test-parseindex2.py | |
514 | test-patch-offset.t |
|
515 | test-patch-offset.t | |
515 | test-patch.t |
|
516 | test-patch.t | |
516 | test-patchbomb-bookmark.t |
|
517 | test-patchbomb-bookmark.t | |
517 | test-patchbomb-tls.t |
|
518 | test-patchbomb-tls.t | |
518 | test-patchbomb.t |
|
519 | test-patchbomb.t | |
519 | test-pathconflicts-basic.t |
|
520 | test-pathconflicts-basic.t | |
520 | test-pathconflicts-merge.t |
|
521 | test-pathconflicts-merge.t | |
521 | test-pathconflicts-update.t |
|
522 | test-pathconflicts-update.t | |
522 | test-pathencode.py |
|
523 | test-pathencode.py | |
523 | test-paths.t |
|
524 | test-paths.t | |
524 | test-pending.t |
|
525 | test-pending.t | |
525 | test-permissions.t |
|
526 | test-permissions.t | |
526 | test-phabricator.t |
|
527 | test-phabricator.t | |
527 | test-phase-archived.t |
|
528 | test-phase-archived.t | |
528 | test-phases-exchange.t |
|
529 | test-phases-exchange.t | |
529 | test-phases.t |
|
530 | test-phases.t | |
530 | test-profile.t |
|
531 | test-profile.t | |
531 | test-progress.t |
|
532 | test-progress.t | |
532 | test-propertycache.py |
|
533 | test-propertycache.py | |
533 | test-pull-branch.t |
|
534 | test-pull-branch.t | |
534 | test-pull-bundle.t |
|
535 | test-pull-bundle.t | |
535 | test-pull-http.t |
|
536 | test-pull-http.t | |
536 | test-pull-permission.t |
|
537 | test-pull-permission.t | |
537 | test-pull-pull-corruption.t |
|
538 | test-pull-pull-corruption.t | |
538 | test-pull-r.t |
|
539 | test-pull-r.t | |
539 | test-pull-update.t |
|
540 | test-pull-update.t | |
540 | test-pull.t |
|
541 | test-pull.t | |
541 | test-purge.t |
|
542 | test-purge.t | |
542 | test-push-cgi.t |
|
543 | test-push-cgi.t | |
543 | test-push-checkheads-partial-C1.t |
|
544 | test-push-checkheads-partial-C1.t | |
544 | test-push-checkheads-partial-C2.t |
|
545 | test-push-checkheads-partial-C2.t | |
545 | test-push-checkheads-partial-C3.t |
|
546 | test-push-checkheads-partial-C3.t | |
546 | test-push-checkheads-partial-C4.t |
|
547 | test-push-checkheads-partial-C4.t | |
547 | test-push-checkheads-pruned-B1.t |
|
548 | test-push-checkheads-pruned-B1.t | |
548 | test-push-checkheads-pruned-B2.t |
|
549 | test-push-checkheads-pruned-B2.t | |
549 | test-push-checkheads-pruned-B3.t |
|
550 | test-push-checkheads-pruned-B3.t | |
550 | test-push-checkheads-pruned-B4.t |
|
551 | test-push-checkheads-pruned-B4.t | |
551 | test-push-checkheads-pruned-B5.t |
|
552 | test-push-checkheads-pruned-B5.t | |
552 | test-push-checkheads-pruned-B6.t |
|
553 | test-push-checkheads-pruned-B6.t | |
553 | test-push-checkheads-pruned-B7.t |
|
554 | test-push-checkheads-pruned-B7.t | |
554 | test-push-checkheads-pruned-B8.t |
|
555 | test-push-checkheads-pruned-B8.t | |
555 | test-push-checkheads-superceed-A1.t |
|
556 | test-push-checkheads-superceed-A1.t | |
556 | test-push-checkheads-superceed-A2.t |
|
557 | test-push-checkheads-superceed-A2.t | |
557 | test-push-checkheads-superceed-A3.t |
|
558 | test-push-checkheads-superceed-A3.t | |
558 | test-push-checkheads-superceed-A4.t |
|
559 | test-push-checkheads-superceed-A4.t | |
559 | test-push-checkheads-superceed-A5.t |
|
560 | test-push-checkheads-superceed-A5.t | |
560 | test-push-checkheads-superceed-A6.t |
|
561 | test-push-checkheads-superceed-A6.t | |
561 | test-push-checkheads-superceed-A7.t |
|
562 | test-push-checkheads-superceed-A7.t | |
562 | test-push-checkheads-superceed-A8.t |
|
563 | test-push-checkheads-superceed-A8.t | |
563 | test-push-checkheads-unpushed-D1.t |
|
564 | test-push-checkheads-unpushed-D1.t | |
564 | test-push-checkheads-unpushed-D2.t |
|
565 | test-push-checkheads-unpushed-D2.t | |
565 | test-push-checkheads-unpushed-D3.t |
|
566 | test-push-checkheads-unpushed-D3.t | |
566 | test-push-checkheads-unpushed-D4.t |
|
567 | test-push-checkheads-unpushed-D4.t | |
567 | test-push-checkheads-unpushed-D5.t |
|
568 | test-push-checkheads-unpushed-D5.t | |
568 | test-push-checkheads-unpushed-D6.t |
|
569 | test-push-checkheads-unpushed-D6.t | |
569 | test-push-checkheads-unpushed-D7.t |
|
570 | test-push-checkheads-unpushed-D7.t | |
570 | test-push-http.t |
|
571 | test-push-http.t | |
571 | test-push-race.t |
|
572 | test-push-race.t | |
572 | test-push-warn.t |
|
573 | test-push-warn.t | |
573 | test-push.t |
|
574 | test-push.t | |
574 | test-pushvars.t |
|
575 | test-pushvars.t | |
575 | test-qrecord.t |
|
576 | test-qrecord.t | |
576 | test-rebase-abort.t |
|
577 | test-rebase-abort.t | |
577 | test-rebase-backup.t |
|
578 | test-rebase-backup.t | |
578 | test-rebase-base-flag.t |
|
579 | test-rebase-base-flag.t | |
579 | test-rebase-bookmarks.t |
|
580 | test-rebase-bookmarks.t | |
580 | test-rebase-brute-force.t |
|
581 | test-rebase-brute-force.t | |
581 | test-rebase-cache.t |
|
582 | test-rebase-cache.t | |
582 | test-rebase-check-restore.t |
|
583 | test-rebase-check-restore.t | |
583 | test-rebase-collapse.t |
|
584 | test-rebase-collapse.t | |
584 | test-rebase-conflicts.t |
|
585 | test-rebase-conflicts.t | |
585 | test-rebase-dest.t |
|
586 | test-rebase-dest.t | |
586 | test-rebase-detach.t |
|
587 | test-rebase-detach.t | |
587 | test-rebase-emptycommit.t |
|
588 | test-rebase-emptycommit.t | |
588 | test-rebase-inmemory.t |
|
589 | test-rebase-inmemory.t | |
589 | test-rebase-interruptions.t |
|
590 | test-rebase-interruptions.t | |
590 | test-rebase-issue-noparam-single-rev.t |
|
591 | test-rebase-issue-noparam-single-rev.t | |
591 | test-rebase-legacy.t |
|
592 | test-rebase-legacy.t | |
592 | test-rebase-mq-skip.t |
|
593 | test-rebase-mq-skip.t | |
593 | test-rebase-mq.t |
|
594 | test-rebase-mq.t | |
594 | test-rebase-named-branches.t |
|
595 | test-rebase-named-branches.t | |
595 | test-rebase-newancestor.t |
|
596 | test-rebase-newancestor.t | |
596 | test-rebase-obsolete.t |
|
597 | test-rebase-obsolete.t | |
597 | test-rebase-parameters.t |
|
598 | test-rebase-parameters.t | |
598 | test-rebase-partial.t |
|
599 | test-rebase-partial.t | |
599 | test-rebase-pull.t |
|
600 | test-rebase-pull.t | |
600 | test-rebase-rename.t |
|
601 | test-rebase-rename.t | |
601 | test-rebase-scenario-global.t |
|
602 | test-rebase-scenario-global.t | |
602 | test-rebase-templates.t |
|
603 | test-rebase-templates.t | |
603 | test-rebase-transaction.t |
|
604 | test-rebase-transaction.t | |
604 | test-rebuildstate.t |
|
605 | test-rebuildstate.t | |
605 | test-record.t |
|
606 | test-record.t | |
606 | test-releasenotes-formatting.t |
|
607 | test-releasenotes-formatting.t | |
607 | test-releasenotes-merging.t |
|
608 | test-releasenotes-merging.t | |
608 | test-releasenotes-parsing.t |
|
609 | test-releasenotes-parsing.t | |
609 | test-relink.t |
|
610 | test-relink.t | |
610 | test-remote-hidden.t |
|
611 | test-remote-hidden.t | |
611 | test-remotefilelog-bad-configs.t |
|
612 | test-remotefilelog-bad-configs.t | |
612 | test-remotefilelog-bgprefetch.t |
|
613 | test-remotefilelog-bgprefetch.t | |
613 | test-remotefilelog-blame.t |
|
614 | test-remotefilelog-blame.t | |
614 | test-remotefilelog-bundle2.t |
|
615 | test-remotefilelog-bundle2.t | |
615 | test-remotefilelog-bundles.t |
|
616 | test-remotefilelog-bundles.t | |
616 | test-remotefilelog-cacheprocess.t |
|
617 | test-remotefilelog-cacheprocess.t | |
617 | test-remotefilelog-clone-tree.t |
|
618 | test-remotefilelog-clone-tree.t | |
618 | test-remotefilelog-clone.t |
|
619 | test-remotefilelog-clone.t | |
619 | test-remotefilelog-corrupt-cache.t |
|
620 | test-remotefilelog-corrupt-cache.t | |
620 | test-remotefilelog-datapack.py |
|
621 | test-remotefilelog-datapack.py | |
621 | test-remotefilelog-gc.t |
|
622 | test-remotefilelog-gc.t | |
622 | test-remotefilelog-gcrepack.t |
|
623 | test-remotefilelog-gcrepack.t | |
623 | test-remotefilelog-histpack.py |
|
624 | test-remotefilelog-histpack.py | |
624 | test-remotefilelog-http.t |
|
625 | test-remotefilelog-http.t | |
625 | test-remotefilelog-keepset.t |
|
626 | test-remotefilelog-keepset.t | |
626 | test-remotefilelog-linknodes.t |
|
627 | test-remotefilelog-linknodes.t | |
627 | test-remotefilelog-local.t |
|
628 | test-remotefilelog-local.t | |
628 | test-remotefilelog-log.t |
|
629 | test-remotefilelog-log.t | |
629 | test-remotefilelog-partial-shallow.t |
|
630 | test-remotefilelog-partial-shallow.t | |
630 | test-remotefilelog-permissions.t |
|
631 | test-remotefilelog-permissions.t | |
631 | test-remotefilelog-prefetch.t |
|
632 | test-remotefilelog-prefetch.t | |
632 | test-remotefilelog-pull-noshallow.t |
|
633 | test-remotefilelog-pull-noshallow.t | |
633 | test-remotefilelog-push-pull.t |
|
634 | test-remotefilelog-push-pull.t | |
634 | test-remotefilelog-repack-fast.t |
|
635 | test-remotefilelog-repack-fast.t | |
635 | test-remotefilelog-repack.t |
|
636 | test-remotefilelog-repack.t | |
636 | test-remotefilelog-share.t |
|
637 | test-remotefilelog-share.t | |
637 | test-remotefilelog-sparse.t |
|
638 | test-remotefilelog-sparse.t | |
638 | test-remotefilelog-tags.t |
|
639 | test-remotefilelog-tags.t | |
639 | test-remotefilelog-wireproto.t |
|
640 | test-remotefilelog-wireproto.t | |
640 | test-remove.t |
|
641 | test-remove.t | |
641 | test-removeemptydirs.t |
|
642 | test-removeemptydirs.t | |
642 | test-rename-after-merge.t |
|
643 | test-rename-after-merge.t | |
643 | test-rename-dir-merge.t |
|
644 | test-rename-dir-merge.t | |
644 | test-rename-merge1.t |
|
645 | test-rename-merge1.t | |
645 | test-rename-merge2.t |
|
646 | test-rename-merge2.t | |
646 | test-rename.t |
|
647 | test-rename.t | |
647 | test-repair-strip.t |
|
648 | test-repair-strip.t | |
648 | test-repo-compengines.t |
|
649 | test-repo-compengines.t | |
649 | test-requires.t |
|
650 | test-requires.t | |
650 | test-resolve.t |
|
651 | test-resolve.t | |
651 | test-revert-flags.t |
|
652 | test-revert-flags.t | |
652 | test-revert-interactive.t |
|
653 | test-revert-interactive.t | |
653 | test-revert-unknown.t |
|
654 | test-revert-unknown.t | |
654 | test-revert.t |
|
655 | test-revert.t | |
655 | test-revisions.t |
|
656 | test-revisions.t | |
656 | test-revlog-ancestry.py |
|
657 | test-revlog-ancestry.py | |
657 | test-revlog-group-emptyiter.t |
|
658 | test-revlog-group-emptyiter.t | |
658 | test-revlog-mmapindex.t |
|
659 | test-revlog-mmapindex.t | |
659 | test-revlog-packentry.t |
|
660 | test-revlog-packentry.t | |
660 | test-revlog-raw.py |
|
661 | test-revlog-raw.py | |
661 | test-revlog-v2.t |
|
662 | test-revlog-v2.t | |
662 | test-revlog.t |
|
663 | test-revlog.t | |
663 | test-revset-dirstate-parents.t |
|
664 | test-revset-dirstate-parents.t | |
664 | test-revset-legacy-lookup.t |
|
665 | test-revset-legacy-lookup.t | |
665 | test-revset-outgoing.t |
|
666 | test-revset-outgoing.t | |
666 | test-revset.t |
|
667 | test-revset.t | |
667 | test-revset2.t |
|
668 | test-revset2.t | |
668 | test-rollback.t |
|
669 | test-rollback.t | |
669 | test-run-tests.py |
|
670 | test-run-tests.py | |
670 | test-run-tests.t |
|
671 | test-run-tests.t | |
671 | test-rust-ancestor.py |
|
672 | test-rust-ancestor.py | |
672 | test-rust-discovery.py |
|
673 | test-rust-discovery.py | |
673 | test-schemes.t |
|
674 | test-schemes.t | |
674 | test-serve.t |
|
675 | test-serve.t | |
675 | test-server-view.t |
|
676 | test-server-view.t | |
676 | test-setdiscovery.t |
|
677 | test-setdiscovery.t | |
677 | test-share-bookmarks.t |
|
678 | test-share-bookmarks.t | |
678 | test-share.t |
|
679 | test-share.t | |
679 | test-shelve.t |
|
680 | test-shelve.t | |
680 | test-shelve2.t |
|
681 | test-shelve2.t | |
681 | test-show-stack.t |
|
682 | test-show-stack.t | |
682 | test-show-work.t |
|
683 | test-show-work.t | |
683 | test-show.t |
|
684 | test-show.t | |
684 | test-simple-update.t |
|
685 | test-simple-update.t | |
685 | test-simplekeyvaluefile.py |
|
686 | test-simplekeyvaluefile.py | |
686 | test-simplemerge.py |
|
687 | test-simplemerge.py | |
687 | test-single-head.t |
|
688 | test-single-head.t | |
688 | test-sparse-clear.t |
|
689 | test-sparse-clear.t | |
689 | test-sparse-clone.t |
|
690 | test-sparse-clone.t | |
690 | test-sparse-import.t |
|
691 | test-sparse-import.t | |
691 | test-sparse-merges.t |
|
692 | test-sparse-merges.t | |
692 | test-sparse-profiles.t |
|
693 | test-sparse-profiles.t | |
693 | test-sparse-requirement.t |
|
694 | test-sparse-requirement.t | |
694 | test-sparse-verbose-json.t |
|
695 | test-sparse-verbose-json.t | |
695 | test-sparse.t |
|
696 | test-sparse.t | |
696 | test-split.t |
|
697 | test-split.t | |
697 | test-ssh-bundle1.t |
|
698 | test-ssh-bundle1.t | |
698 | test-ssh-clone-r.t |
|
699 | test-ssh-clone-r.t | |
699 | test-ssh-proto-unbundle.t |
|
700 | test-ssh-proto-unbundle.t | |
700 | test-ssh-proto.t |
|
701 | test-ssh-proto.t | |
701 | test-ssh-repoerror.t |
|
702 | test-ssh-repoerror.t | |
702 | test-ssh.t |
|
703 | test-ssh.t | |
703 | test-sshserver.py |
|
704 | test-sshserver.py | |
704 | test-stack.t |
|
705 | test-stack.t | |
705 | test-static-http.t |
|
706 | test-static-http.t | |
706 | test-status-color.t |
|
707 | test-status-color.t | |
707 | test-status-inprocess.py |
|
708 | test-status-inprocess.py | |
708 | test-status-rev.t |
|
709 | test-status-rev.t | |
709 | test-status-terse.t |
|
710 | test-status-terse.t | |
710 | test-status.t |
|
711 | test-status.t | |
711 | test-storage.py |
|
712 | test-storage.py | |
712 | test-stream-bundle-v2.t |
|
713 | test-stream-bundle-v2.t | |
713 | test-strict.t |
|
714 | test-strict.t | |
714 | test-strip-cross.t |
|
715 | test-strip-cross.t | |
715 | test-strip.t |
|
716 | test-strip.t | |
716 | test-subrepo-deep-nested-change.t |
|
717 | test-subrepo-deep-nested-change.t | |
717 | test-subrepo-git.t |
|
718 | test-subrepo-git.t | |
718 | test-subrepo-missing.t |
|
719 | test-subrepo-missing.t | |
719 | test-subrepo-paths.t |
|
720 | test-subrepo-paths.t | |
720 | test-subrepo-recursion.t |
|
721 | test-subrepo-recursion.t | |
721 | test-subrepo-relative-path.t |
|
722 | test-subrepo-relative-path.t | |
722 | test-subrepo-svn.t |
|
723 | test-subrepo-svn.t | |
723 | test-subrepo.t |
|
724 | test-subrepo.t | |
724 | test-symlink-os-yes-fs-no.py |
|
725 | test-symlink-os-yes-fs-no.py | |
725 | test-symlink-placeholder.t |
|
726 | test-symlink-placeholder.t | |
726 | test-symlinks.t |
|
727 | test-symlinks.t | |
727 | test-tag.t |
|
728 | test-tag.t | |
728 | test-tags.t |
|
729 | test-tags.t | |
729 | test-template-basic.t |
|
730 | test-template-basic.t | |
730 | test-template-functions.t |
|
731 | test-template-functions.t | |
731 | test-template-keywords.t |
|
732 | test-template-keywords.t | |
732 | test-template-map.t |
|
733 | test-template-map.t | |
733 | test-tools.t |
|
734 | test-tools.t | |
734 | test-transplant.t |
|
735 | test-transplant.t | |
735 | test-treediscovery-legacy.t |
|
736 | test-treediscovery-legacy.t | |
736 | test-treediscovery.t |
|
737 | test-treediscovery.t | |
737 | test-treemanifest.t |
|
738 | test-treemanifest.t | |
738 | test-trusted.py |
|
739 | test-trusted.py | |
739 | test-ui-color.py |
|
740 | test-ui-color.py | |
740 | test-ui-config.py |
|
741 | test-ui-config.py | |
741 | test-ui-verbosity.py |
|
742 | test-ui-verbosity.py | |
742 | test-unamend.t |
|
743 | test-unamend.t | |
743 | test-unbundlehash.t |
|
744 | test-unbundlehash.t | |
744 | test-uncommit.t |
|
745 | test-uncommit.t | |
745 | test-unified-test.t |
|
746 | test-unified-test.t | |
746 | test-unionrepo.t |
|
747 | test-unionrepo.t | |
747 | test-unrelated-pull.t |
|
748 | test-unrelated-pull.t | |
748 | test-up-local-change.t |
|
749 | test-up-local-change.t | |
749 | test-update-atomic.t |
|
750 | test-update-atomic.t | |
750 | test-update-branches.t |
|
751 | test-update-branches.t | |
751 | test-update-dest.t |
|
752 | test-update-dest.t | |
752 | test-update-issue1456.t |
|
753 | test-update-issue1456.t | |
753 | test-update-names.t |
|
754 | test-update-names.t | |
754 | test-update-reverse.t |
|
755 | test-update-reverse.t | |
755 | test-upgrade-repo.t |
|
756 | test-upgrade-repo.t | |
756 | test-url-download.t |
|
757 | test-url-download.t | |
757 | test-url-rev.t |
|
758 | test-url-rev.t | |
758 | test-url.py |
|
759 | test-url.py | |
759 | test-username-newline.t |
|
760 | test-username-newline.t | |
760 | test-util.py |
|
761 | test-util.py | |
761 | test-verify.t |
|
762 | test-verify.t | |
762 | test-walk.t |
|
763 | test-walk.t | |
763 | test-walkrepo.py |
|
764 | test-walkrepo.py | |
764 | test-websub.t |
|
765 | test-websub.t | |
765 | test-win32text.t |
|
766 | test-win32text.t | |
766 | test-wireproto-caching.t |
|
767 | test-wireproto-caching.t | |
767 | test-wireproto-clientreactor.py |
|
768 | test-wireproto-clientreactor.py | |
768 | test-wireproto-command-branchmap.t |
|
769 | test-wireproto-command-branchmap.t | |
769 | test-wireproto-command-capabilities.t |
|
770 | test-wireproto-command-capabilities.t | |
770 | test-wireproto-command-changesetdata.t |
|
771 | test-wireproto-command-changesetdata.t | |
771 | test-wireproto-command-filedata.t |
|
772 | test-wireproto-command-filedata.t | |
772 | test-wireproto-command-filesdata.t |
|
773 | test-wireproto-command-filesdata.t | |
773 | test-wireproto-command-heads.t |
|
774 | test-wireproto-command-heads.t | |
774 | test-wireproto-command-known.t |
|
775 | test-wireproto-command-known.t | |
775 | test-wireproto-command-listkeys.t |
|
776 | test-wireproto-command-listkeys.t | |
776 | test-wireproto-command-lookup.t |
|
777 | test-wireproto-command-lookup.t | |
777 | test-wireproto-command-manifestdata.t |
|
778 | test-wireproto-command-manifestdata.t | |
778 | test-wireproto-command-pushkey.t |
|
779 | test-wireproto-command-pushkey.t | |
779 | test-wireproto-command-rawstorefiledata.t |
|
780 | test-wireproto-command-rawstorefiledata.t | |
780 | test-wireproto-content-redirects.t |
|
781 | test-wireproto-content-redirects.t | |
781 | test-wireproto-exchangev2.t |
|
782 | test-wireproto-exchangev2.t | |
782 | test-wireproto-framing.py |
|
783 | test-wireproto-framing.py | |
783 | test-wireproto-serverreactor.py |
|
784 | test-wireproto-serverreactor.py | |
784 | test-wireproto.py |
|
785 | test-wireproto.py | |
785 | test-wireproto.t |
|
786 | test-wireproto.t | |
786 | test-worker.t |
|
787 | test-worker.t | |
787 | test-wsgirequest.py |
|
788 | test-wsgirequest.py | |
788 | test-xdg.t |
|
789 | test-xdg.t |
@@ -1,96 +1,98 b'' | |||||
1 | # highlight - syntax highlighting in hgweb, based on Pygments |
|
1 | # highlight - syntax highlighting in hgweb, based on Pygments | |
2 | # |
|
2 | # | |
3 | # Copyright 2008, 2009 Patrick Mezard <pmezard@gmail.com> and others |
|
3 | # Copyright 2008, 2009 Patrick Mezard <pmezard@gmail.com> and others | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 | # |
|
7 | # | |
8 | # The original module was split in an interface and an implementation |
|
8 | # The original module was split in an interface and an implementation | |
9 | # file to defer pygments loading and speedup extension setup. |
|
9 | # file to defer pygments loading and speedup extension setup. | |
10 |
|
10 | |||
11 | """syntax highlighting for hgweb (requires Pygments) |
|
11 | """syntax highlighting for hgweb (requires Pygments) | |
12 |
|
12 | |||
13 | It depends on the Pygments syntax highlighting library: |
|
13 | It depends on the Pygments syntax highlighting library: | |
14 | http://pygments.org/ |
|
14 | http://pygments.org/ | |
15 |
|
15 | |||
16 | There are the following configuration options:: |
|
16 | There are the following configuration options:: | |
17 |
|
17 | |||
18 | [web] |
|
18 | [web] | |
19 | pygments_style = <style> (default: colorful) |
|
19 | pygments_style = <style> (default: colorful) | |
20 | highlightfiles = <fileset> (default: size('<5M')) |
|
20 | highlightfiles = <fileset> (default: size('<5M')) | |
21 | highlightonlymatchfilename = <bool> (default False) |
|
21 | highlightonlymatchfilename = <bool> (default False) | |
22 |
|
22 | |||
23 | ``highlightonlymatchfilename`` will only highlight files if their type could |
|
23 | ``highlightonlymatchfilename`` will only highlight files if their type could | |
24 | be identified by their filename. When this is not enabled (the default), |
|
24 | be identified by their filename. When this is not enabled (the default), | |
25 | Pygments will try very hard to identify the file type from content and any |
|
25 | Pygments will try very hard to identify the file type from content and any | |
26 | match (even matches with a low confidence score) will be used. |
|
26 | match (even matches with a low confidence score) will be used. | |
27 | """ |
|
27 | """ | |
28 |
|
28 | |||
29 | from __future__ import absolute_import |
|
29 | from __future__ import absolute_import | |
30 |
|
30 | |||
31 | from . import highlight |
|
31 | from . import highlight | |
32 | from mercurial.hgweb import ( |
|
32 | from mercurial.hgweb import ( | |
33 | webcommands, |
|
33 | webcommands, | |
34 | webutil, |
|
34 | webutil, | |
35 | ) |
|
35 | ) | |
36 |
|
36 | |||
37 | from mercurial import ( |
|
37 | from mercurial import ( | |
38 | extensions, |
|
38 | extensions, | |
|
39 | pycompat, | |||
39 | ) |
|
40 | ) | |
40 |
|
41 | |||
41 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
42 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | |
42 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
43 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | |
43 | # be specifying the version(s) of Mercurial they are tested with, or |
|
44 | # be specifying the version(s) of Mercurial they are tested with, or | |
44 | # leave the attribute unspecified. |
|
45 | # leave the attribute unspecified. | |
45 | testedwith = 'ships-with-hg-core' |
|
46 | testedwith = 'ships-with-hg-core' | |
46 |
|
47 | |||
47 | def pygmentize(web, field, fctx, tmpl): |
|
48 | def pygmentize(web, field, fctx, tmpl): | |
48 | style = web.config('web', 'pygments_style', 'colorful') |
|
49 | style = web.config('web', 'pygments_style', 'colorful') | |
49 | expr = web.config('web', 'highlightfiles', "size('<5M')") |
|
50 | expr = web.config('web', 'highlightfiles', "size('<5M')") | |
50 | filenameonly = web.configbool('web', 'highlightonlymatchfilename', False) |
|
51 | filenameonly = web.configbool('web', 'highlightonlymatchfilename', False) | |
51 |
|
52 | |||
52 | ctx = fctx.changectx() |
|
53 | ctx = fctx.changectx() | |
53 | m = ctx.matchfileset(expr) |
|
54 | m = ctx.matchfileset(expr) | |
54 | if m(fctx.path()): |
|
55 | if m(fctx.path()): | |
55 | highlight.pygmentize(field, fctx, style, tmpl, |
|
56 | highlight.pygmentize(field, fctx, style, tmpl, | |
56 | guessfilenameonly=filenameonly) |
|
57 | guessfilenameonly=filenameonly) | |
57 |
|
58 | |||
58 | def filerevision_highlight(orig, web, fctx): |
|
59 | def filerevision_highlight(orig, web, fctx): | |
59 | mt = web.res.headers['Content-Type'] |
|
60 | mt = web.res.headers['Content-Type'] | |
60 | # only pygmentize for mimetype containing 'html' so we both match |
|
61 | # only pygmentize for mimetype containing 'html' so we both match | |
61 | # 'text/html' and possibly 'application/xhtml+xml' in the future |
|
62 | # 'text/html' and possibly 'application/xhtml+xml' in the future | |
62 | # so that we don't have to touch the extension when the mimetype |
|
63 | # so that we don't have to touch the extension when the mimetype | |
63 | # for a template changes; also hgweb optimizes the case that a |
|
64 | # for a template changes; also hgweb optimizes the case that a | |
64 | # raw file is sent using rawfile() and doesn't call us, so we |
|
65 | # raw file is sent using rawfile() and doesn't call us, so we | |
65 | # can't clash with the file's content-type here in case we |
|
66 | # can't clash with the file's content-type here in case we | |
66 | # pygmentize a html file |
|
67 | # pygmentize a html file | |
67 | if 'html' in mt: |
|
68 | if 'html' in mt: | |
68 | pygmentize(web, 'fileline', fctx, web.tmpl) |
|
69 | pygmentize(web, 'fileline', fctx, web.tmpl) | |
69 |
|
70 | |||
70 | return orig(web, fctx) |
|
71 | return orig(web, fctx) | |
71 |
|
72 | |||
72 | def annotate_highlight(orig, web): |
|
73 | def annotate_highlight(orig, web): | |
73 | mt = web.res.headers['Content-Type'] |
|
74 | mt = web.res.headers['Content-Type'] | |
74 | if 'html' in mt: |
|
75 | if 'html' in mt: | |
75 | fctx = webutil.filectx(web.repo, web.req) |
|
76 | fctx = webutil.filectx(web.repo, web.req) | |
76 | pygmentize(web, 'annotateline', fctx, web.tmpl) |
|
77 | pygmentize(web, 'annotateline', fctx, web.tmpl) | |
77 |
|
78 | |||
78 | return orig(web) |
|
79 | return orig(web) | |
79 |
|
80 | |||
80 | def generate_css(web): |
|
81 | def generate_css(web): | |
81 | pg_style = web.config('web', 'pygments_style', 'colorful') |
|
82 | pg_style = web.config('web', 'pygments_style', 'colorful') | |
82 | fmter = highlight.HtmlFormatter(style=pg_style) |
|
83 | fmter = highlight.HtmlFormatter(style=pycompat.sysstr(pg_style)) | |
83 | web.res.headers['Content-Type'] = 'text/css' |
|
84 | web.res.headers['Content-Type'] = 'text/css' | |
|
85 | style_defs = fmter.get_style_defs(pycompat.sysstr('')) | |||
84 | web.res.setbodybytes(''.join([ |
|
86 | web.res.setbodybytes(''.join([ | |
85 | '/* pygments_style = %s */\n\n' % pg_style, |
|
87 | '/* pygments_style = %s */\n\n' % pg_style, | |
86 |
|
|
88 | pycompat.bytestr(style_defs), | |
87 | ])) |
|
89 | ])) | |
88 | return web.res.sendresponse() |
|
90 | return web.res.sendresponse() | |
89 |
|
91 | |||
90 | def extsetup(ui): |
|
92 | def extsetup(ui): | |
91 | # monkeypatch in the new version |
|
93 | # monkeypatch in the new version | |
92 | extensions.wrapfunction(webcommands, '_filerevision', |
|
94 | extensions.wrapfunction(webcommands, '_filerevision', | |
93 | filerevision_highlight) |
|
95 | filerevision_highlight) | |
94 | extensions.wrapfunction(webcommands, 'annotate', annotate_highlight) |
|
96 | extensions.wrapfunction(webcommands, 'annotate', annotate_highlight) | |
95 | webcommands.highlightcss = generate_css |
|
97 | webcommands.highlightcss = generate_css | |
96 | webcommands.__all__.append('highlightcss') |
|
98 | webcommands.__all__.append('highlightcss') |
@@ -1,97 +1,99 b'' | |||||
1 | # highlight.py - highlight extension implementation file |
|
1 | # highlight.py - highlight extension implementation file | |
2 | # |
|
2 | # | |
3 | # Copyright 2007-2009 Adam Hupp <adam@hupp.org> and others |
|
3 | # Copyright 2007-2009 Adam Hupp <adam@hupp.org> and others | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 | # |
|
7 | # | |
8 | # The original module was split in an interface and an implementation |
|
8 | # The original module was split in an interface and an implementation | |
9 | # file to defer pygments loading and speedup extension setup. |
|
9 | # file to defer pygments loading and speedup extension setup. | |
10 |
|
10 | |||
11 | from __future__ import absolute_import |
|
11 | from __future__ import absolute_import | |
12 |
|
12 | |||
13 | from mercurial import demandimport |
|
13 | from mercurial import demandimport | |
14 | demandimport.IGNORES.update(['pkgutil', 'pkg_resources', '__main__']) |
|
14 | demandimport.IGNORES.update(['pkgutil', 'pkg_resources', '__main__']) | |
15 |
|
15 | |||
16 | from mercurial import ( |
|
16 | from mercurial import ( | |
17 | encoding, |
|
17 | encoding, | |
|
18 | pycompat, | |||
18 | ) |
|
19 | ) | |
19 |
|
20 | |||
20 | from mercurial.utils import ( |
|
21 | from mercurial.utils import ( | |
21 | stringutil, |
|
22 | stringutil, | |
22 | ) |
|
23 | ) | |
23 |
|
24 | |||
24 | with demandimport.deactivated(): |
|
25 | with demandimport.deactivated(): | |
25 | import pygments |
|
26 | import pygments | |
26 | import pygments.formatters |
|
27 | import pygments.formatters | |
27 | import pygments.lexers |
|
28 | import pygments.lexers | |
28 | import pygments.plugin |
|
29 | import pygments.plugin | |
29 | import pygments.util |
|
30 | import pygments.util | |
30 |
|
31 | |||
31 | for unused in pygments.plugin.find_plugin_lexers(): |
|
32 | for unused in pygments.plugin.find_plugin_lexers(): | |
32 | pass |
|
33 | pass | |
33 |
|
34 | |||
34 | highlight = pygments.highlight |
|
35 | highlight = pygments.highlight | |
35 | ClassNotFound = pygments.util.ClassNotFound |
|
36 | ClassNotFound = pygments.util.ClassNotFound | |
36 | guess_lexer = pygments.lexers.guess_lexer |
|
37 | guess_lexer = pygments.lexers.guess_lexer | |
37 | guess_lexer_for_filename = pygments.lexers.guess_lexer_for_filename |
|
38 | guess_lexer_for_filename = pygments.lexers.guess_lexer_for_filename | |
38 | TextLexer = pygments.lexers.TextLexer |
|
39 | TextLexer = pygments.lexers.TextLexer | |
39 | HtmlFormatter = pygments.formatters.HtmlFormatter |
|
40 | HtmlFormatter = pygments.formatters.HtmlFormatter | |
40 |
|
41 | |||
41 | SYNTAX_CSS = ('\n<link rel="stylesheet" href="{url}highlightcss" ' |
|
42 | SYNTAX_CSS = ('\n<link rel="stylesheet" href="{url}highlightcss" ' | |
42 | 'type="text/css" />') |
|
43 | 'type="text/css" />') | |
43 |
|
44 | |||
44 | def pygmentize(field, fctx, style, tmpl, guessfilenameonly=False): |
|
45 | def pygmentize(field, fctx, style, tmpl, guessfilenameonly=False): | |
45 |
|
46 | |||
46 | # append a <link ...> to the syntax highlighting css |
|
47 | # append a <link ...> to the syntax highlighting css | |
47 | tmpl.load('header') |
|
48 | tmpl.load('header') | |
48 | old_header = tmpl.cache['header'] |
|
49 | old_header = tmpl.cache['header'] | |
49 | if SYNTAX_CSS not in old_header: |
|
50 | if SYNTAX_CSS not in old_header: | |
50 | new_header = old_header + SYNTAX_CSS |
|
51 | new_header = old_header + SYNTAX_CSS | |
51 | tmpl.cache['header'] = new_header |
|
52 | tmpl.cache['header'] = new_header | |
52 |
|
53 | |||
53 | text = fctx.data() |
|
54 | text = fctx.data() | |
54 | if stringutil.binary(text): |
|
55 | if stringutil.binary(text): | |
55 | return |
|
56 | return | |
56 |
|
57 | |||
57 | # str.splitlines() != unicode.splitlines() because "reasons" |
|
58 | # str.splitlines() != unicode.splitlines() because "reasons" | |
58 | for c in "\x0c\x1c\x1d\x1e": |
|
59 | for c in "\x0c\x1c\x1d\x1e": | |
59 | if c in text: |
|
60 | if c in text: | |
60 | text = text.replace(c, '') |
|
61 | text = text.replace(c, '') | |
61 |
|
62 | |||
62 | # Pygments is best used with Unicode strings: |
|
63 | # Pygments is best used with Unicode strings: | |
63 | # <http://pygments.org/docs/unicode/> |
|
64 | # <http://pygments.org/docs/unicode/> | |
64 | text = text.decode(encoding.encoding, 'replace') |
|
65 | text = text.decode(pycompat.sysstr(encoding.encoding), 'replace') | |
65 |
|
66 | |||
66 | # To get multi-line strings right, we can't format line-by-line |
|
67 | # To get multi-line strings right, we can't format line-by-line | |
67 | try: |
|
68 | try: | |
68 | lexer = guess_lexer_for_filename(fctx.path(), text[:1024], |
|
69 | path = pycompat.sysstr(fctx.path()) | |
|
70 | lexer = guess_lexer_for_filename(path, text[:1024], | |||
69 | stripnl=False) |
|
71 | stripnl=False) | |
70 | except (ClassNotFound, ValueError): |
|
72 | except (ClassNotFound, ValueError): | |
71 | # guess_lexer will return a lexer if *any* lexer matches. There is |
|
73 | # guess_lexer will return a lexer if *any* lexer matches. There is | |
72 | # no way to specify a minimum match score. This can give a high rate of |
|
74 | # no way to specify a minimum match score. This can give a high rate of | |
73 | # false positives on files with an unknown filename pattern. |
|
75 | # false positives on files with an unknown filename pattern. | |
74 | if guessfilenameonly: |
|
76 | if guessfilenameonly: | |
75 | return |
|
77 | return | |
76 |
|
78 | |||
77 | try: |
|
79 | try: | |
78 | lexer = guess_lexer(text[:1024], stripnl=False) |
|
80 | lexer = guess_lexer(text[:1024], stripnl=False) | |
79 | except (ClassNotFound, ValueError): |
|
81 | except (ClassNotFound, ValueError): | |
80 | # Don't highlight unknown files |
|
82 | # Don't highlight unknown files | |
81 | return |
|
83 | return | |
82 |
|
84 | |||
83 | # Don't highlight text files |
|
85 | # Don't highlight text files | |
84 | if isinstance(lexer, TextLexer): |
|
86 | if isinstance(lexer, TextLexer): | |
85 | return |
|
87 | return | |
86 |
|
88 | |||
87 | formatter = HtmlFormatter(nowrap=True, style=style) |
|
89 | formatter = HtmlFormatter(nowrap=True, style=pycompat.sysstr(style)) | |
88 |
|
90 | |||
89 | colorized = highlight(text, lexer, formatter) |
|
91 | colorized = highlight(text, lexer, formatter) | |
90 | coloriter = (s.encode(encoding.encoding, 'replace') |
|
92 | coloriter = (s.encode(pycompat.sysstr(encoding.encoding), 'replace') | |
91 | for s in colorized.splitlines()) |
|
93 | for s in colorized.splitlines()) | |
92 |
|
94 | |||
93 | tmpl._filters['colorize'] = lambda x: next(coloriter) |
|
95 | tmpl._filters['colorize'] = lambda x: next(coloriter) | |
94 |
|
96 | |||
95 | oldl = tmpl.cache[field] |
|
97 | oldl = tmpl.cache[field] | |
96 | newl = oldl.replace('line|escape', 'line|colorize') |
|
98 | newl = oldl.replace('line|escape', 'line|colorize') | |
97 | tmpl.cache[field] = newl |
|
99 | tmpl.cache[field] = newl |
General Comments 0
You need to be logged in to leave comments.
Login now