Show More
@@ -1,466 +1,467 | |||||
1 | test-abort-checkin.t |
|
1 | test-abort-checkin.t | |
2 | test-add.t |
|
2 | test-add.t | |
3 | test-addremove-similar.t |
|
3 | test-addremove-similar.t | |
4 | test-addremove.t |
|
4 | test-addremove.t | |
5 | test-amend-subrepo.t |
|
5 | test-amend-subrepo.t | |
6 | test-amend.t |
|
6 | test-amend.t | |
7 | test-ancestor.py |
|
7 | test-ancestor.py | |
8 | test-annotate.py |
|
8 | test-annotate.py | |
9 | test-annotate.t |
|
9 | test-annotate.t | |
10 | test-archive-symlinks.t |
|
10 | test-archive-symlinks.t | |
11 | test-atomictempfile.py |
|
11 | test-atomictempfile.py | |
12 | test-audit-path.t |
|
12 | test-audit-path.t | |
13 | test-audit-subrepo.t |
|
13 | test-audit-subrepo.t | |
14 | test-automv.t |
|
14 | test-automv.t | |
15 | test-backout.t |
|
15 | test-backout.t | |
16 | test-backwards-remove.t |
|
16 | test-backwards-remove.t | |
17 | test-basic.t |
|
17 | test-basic.t | |
18 | test-bheads.t |
|
18 | test-bheads.t | |
19 | test-bisect.t |
|
19 | test-bisect.t | |
20 | test-bisect2.t |
|
20 | test-bisect2.t | |
21 | test-bisect3.t |
|
21 | test-bisect3.t | |
22 | test-blackbox.t |
|
22 | test-blackbox.t | |
23 | test-bookmarks-current.t |
|
23 | test-bookmarks-current.t | |
24 | test-bookmarks-merge.t |
|
24 | test-bookmarks-merge.t | |
25 | test-bookmarks-rebase.t |
|
25 | test-bookmarks-rebase.t | |
26 | test-bookmarks-strip.t |
|
26 | test-bookmarks-strip.t | |
27 | test-bookmarks.t |
|
27 | test-bookmarks.t | |
28 | test-branch-change.t |
|
28 | test-branch-change.t | |
29 | test-branch-option.t |
|
29 | test-branch-option.t | |
30 | test-branch-tag-confict.t |
|
30 | test-branch-tag-confict.t | |
31 | test-branches.t |
|
31 | test-branches.t | |
32 | test-bundle-phases.t |
|
32 | test-bundle-phases.t | |
33 | test-bundle-type.t |
|
33 | test-bundle-type.t | |
34 | test-bundle-vs-outgoing.t |
|
34 | test-bundle-vs-outgoing.t | |
35 | test-bundle2-multiple-changegroups.t |
|
35 | test-bundle2-multiple-changegroups.t | |
36 | test-cappedreader.py |
|
36 | test-cappedreader.py | |
37 | test-casecollision.t |
|
37 | test-casecollision.t | |
38 | test-cat.t |
|
38 | test-cat.t | |
39 | test-censor.t |
|
39 | test-censor.t | |
40 | test-changelog-exec.t |
|
40 | test-changelog-exec.t | |
41 | test-check-commit.t |
|
41 | test-check-commit.t | |
42 | test-check-execute.t |
|
42 | test-check-execute.t | |
43 | test-check-interfaces.py |
|
43 | test-check-interfaces.py | |
44 | test-check-module-imports.t |
|
44 | test-check-module-imports.t | |
45 | test-check-pyflakes.t |
|
45 | test-check-pyflakes.t | |
46 | test-check-pylint.t |
|
46 | test-check-pylint.t | |
47 | test-check-shbang.t |
|
47 | test-check-shbang.t | |
48 | test-children.t |
|
48 | test-children.t | |
49 | test-clone-cgi.t |
|
49 | test-clone-cgi.t | |
50 | test-clone-pull-corruption.t |
|
50 | test-clone-pull-corruption.t | |
51 | test-clone-r.t |
|
51 | test-clone-r.t | |
52 | test-clone-update-order.t |
|
52 | test-clone-update-order.t | |
53 | test-command-template.t |
|
53 | test-command-template.t | |
54 | test-commit-amend.t |
|
54 | test-commit-amend.t | |
55 | test-commit-interactive.t |
|
55 | test-commit-interactive.t | |
56 | test-commit-multiple.t |
|
56 | test-commit-multiple.t | |
57 | test-commit-unresolved.t |
|
57 | test-commit-unresolved.t | |
58 | test-commit.t |
|
58 | test-commit.t | |
59 | test-committer.t |
|
59 | test-committer.t | |
60 | test-completion.t |
|
60 | test-completion.t | |
61 | test-config-env.py |
|
61 | test-config-env.py | |
62 | test-config.t |
|
62 | test-config.t | |
63 | test-conflict.t |
|
63 | test-conflict.t | |
64 | test-confused-revert.t |
|
64 | test-confused-revert.t | |
65 | test-contrib-check-code.t |
|
65 | test-contrib-check-code.t | |
66 | test-contrib-check-commit.t |
|
66 | test-contrib-check-commit.t | |
67 | test-convert-authormap.t |
|
67 | test-convert-authormap.t | |
68 | test-convert-clonebranches.t |
|
68 | test-convert-clonebranches.t | |
69 | test-convert-datesort.t |
|
69 | test-convert-datesort.t | |
70 | test-convert-filemap.t |
|
70 | test-convert-filemap.t | |
71 | test-convert-hg-sink.t |
|
71 | test-convert-hg-sink.t | |
72 | test-convert-hg-source.t |
|
72 | test-convert-hg-source.t | |
73 | test-convert-hg-startrev.t |
|
73 | test-convert-hg-startrev.t | |
74 | test-convert-splicemap.t |
|
74 | test-convert-splicemap.t | |
75 | test-convert-tagsbranch-topology.t |
|
75 | test-convert-tagsbranch-topology.t | |
76 | test-copy-move-merge.t |
|
76 | test-copy-move-merge.t | |
77 | test-copy.t |
|
77 | test-copy.t | |
78 | test-copytrace-heuristics.t |
|
78 | test-copytrace-heuristics.t | |
79 | test-debugbuilddag.t |
|
79 | test-debugbuilddag.t | |
80 | test-debugbundle.t |
|
80 | test-debugbundle.t | |
81 | test-debugextensions.t |
|
81 | test-debugextensions.t | |
82 | test-debugindexdot.t |
|
82 | test-debugindexdot.t | |
83 | test-debugrename.t |
|
83 | test-debugrename.t | |
84 | test-default-push.t |
|
84 | test-default-push.t | |
85 | test-diff-binary-file.t |
|
85 | test-diff-binary-file.t | |
86 | test-diff-change.t |
|
86 | test-diff-change.t | |
87 | test-diff-copy-depth.t |
|
87 | test-diff-copy-depth.t | |
88 | test-diff-hashes.t |
|
88 | test-diff-hashes.t | |
89 | test-diff-ignore-whitespace.t |
|
89 | test-diff-ignore-whitespace.t | |
90 | test-diff-indent-heuristic.t |
|
90 | test-diff-indent-heuristic.t | |
91 | test-diff-issue2761.t |
|
91 | test-diff-issue2761.t | |
92 | test-diff-newlines.t |
|
92 | test-diff-newlines.t | |
93 | test-diff-reverse.t |
|
93 | test-diff-reverse.t | |
94 | test-diff-subdir.t |
|
94 | test-diff-subdir.t | |
95 | test-diff-unified.t |
|
95 | test-diff-unified.t | |
96 | test-diff-upgrade.t |
|
96 | test-diff-upgrade.t | |
97 | test-diffdir.t |
|
97 | test-diffdir.t | |
98 | test-diffstat.t |
|
98 | test-diffstat.t | |
99 | test-directaccess.t |
|
99 | test-directaccess.t | |
100 | test-dirstate-backup.t |
|
100 | test-dirstate-backup.t | |
101 | test-dirstate-nonnormalset.t |
|
101 | test-dirstate-nonnormalset.t | |
102 | test-dirstate.t |
|
102 | test-dirstate.t | |
103 | test-doctest.py |
|
103 | test-doctest.py | |
104 | test-double-merge.t |
|
104 | test-double-merge.t | |
105 | test-drawdag.t |
|
105 | test-drawdag.t | |
106 | test-duplicateoptions.py |
|
106 | test-duplicateoptions.py | |
107 | test-editor-filename.t |
|
107 | test-editor-filename.t | |
108 | test-empty-dir.t |
|
108 | test-empty-dir.t | |
109 | test-empty-file.t |
|
109 | test-empty-file.t | |
110 | test-empty-group.t |
|
110 | test-empty-group.t | |
111 | test-empty.t |
|
111 | test-empty.t | |
112 | test-encode.t |
|
112 | test-encode.t | |
113 | test-encoding-func.py |
|
113 | test-encoding-func.py | |
114 | test-encoding.t |
|
114 | test-encoding.t | |
115 | test-eol-add.t |
|
115 | test-eol-add.t | |
116 | test-eol-clone.t |
|
116 | test-eol-clone.t | |
117 | test-eol-hook.t |
|
117 | test-eol-hook.t | |
118 | test-eol-tag.t |
|
118 | test-eol-tag.t | |
119 | test-eol-update.t |
|
119 | test-eol-update.t | |
120 | test-excessive-merge.t |
|
120 | test-excessive-merge.t | |
121 | test-exchange-obsmarkers-case-A1.t |
|
121 | test-exchange-obsmarkers-case-A1.t | |
122 | test-exchange-obsmarkers-case-A2.t |
|
122 | test-exchange-obsmarkers-case-A2.t | |
123 | test-exchange-obsmarkers-case-A3.t |
|
123 | test-exchange-obsmarkers-case-A3.t | |
124 | test-exchange-obsmarkers-case-A4.t |
|
124 | test-exchange-obsmarkers-case-A4.t | |
125 | test-exchange-obsmarkers-case-A5.t |
|
125 | test-exchange-obsmarkers-case-A5.t | |
126 | test-exchange-obsmarkers-case-A6.t |
|
126 | test-exchange-obsmarkers-case-A6.t | |
127 | test-exchange-obsmarkers-case-A7.t |
|
127 | test-exchange-obsmarkers-case-A7.t | |
128 | test-exchange-obsmarkers-case-B1.t |
|
128 | test-exchange-obsmarkers-case-B1.t | |
129 | test-exchange-obsmarkers-case-B2.t |
|
129 | test-exchange-obsmarkers-case-B2.t | |
130 | test-exchange-obsmarkers-case-B3.t |
|
130 | test-exchange-obsmarkers-case-B3.t | |
131 | test-exchange-obsmarkers-case-B4.t |
|
131 | test-exchange-obsmarkers-case-B4.t | |
132 | test-exchange-obsmarkers-case-B5.t |
|
132 | test-exchange-obsmarkers-case-B5.t | |
133 | test-exchange-obsmarkers-case-B6.t |
|
133 | test-exchange-obsmarkers-case-B6.t | |
134 | test-exchange-obsmarkers-case-B7.t |
|
134 | test-exchange-obsmarkers-case-B7.t | |
135 | test-exchange-obsmarkers-case-C1.t |
|
135 | test-exchange-obsmarkers-case-C1.t | |
136 | test-exchange-obsmarkers-case-C2.t |
|
136 | test-exchange-obsmarkers-case-C2.t | |
137 | test-exchange-obsmarkers-case-C3.t |
|
137 | test-exchange-obsmarkers-case-C3.t | |
138 | test-exchange-obsmarkers-case-C4.t |
|
138 | test-exchange-obsmarkers-case-C4.t | |
139 | test-exchange-obsmarkers-case-D1.t |
|
139 | test-exchange-obsmarkers-case-D1.t | |
140 | test-exchange-obsmarkers-case-D2.t |
|
140 | test-exchange-obsmarkers-case-D2.t | |
141 | test-exchange-obsmarkers-case-D3.t |
|
141 | test-exchange-obsmarkers-case-D3.t | |
142 | test-exchange-obsmarkers-case-D4.t |
|
142 | test-exchange-obsmarkers-case-D4.t | |
143 | test-execute-bit.t |
|
143 | test-execute-bit.t | |
144 | test-export.t |
|
144 | test-export.t | |
145 | test-extdata.t |
|
145 | test-extdata.t | |
146 | test-extdiff.t |
|
146 | test-extdiff.t | |
147 | test-extra-filelog-entry.t |
|
147 | test-extra-filelog-entry.t | |
148 | test-filebranch.t |
|
148 | test-filebranch.t | |
149 | test-fileset-generated.t |
|
149 | test-fileset-generated.t | |
150 | test-fix-topology.t |
|
150 | test-fix-topology.t | |
151 | test-flags.t |
|
151 | test-flags.t | |
152 | test-generaldelta.t |
|
152 | test-generaldelta.t | |
153 | test-getbundle.t |
|
153 | test-getbundle.t | |
154 | test-git-export.t |
|
154 | test-git-export.t | |
155 | test-glog-topological.t |
|
155 | test-glog-topological.t | |
156 | test-gpg.t |
|
156 | test-gpg.t | |
157 | test-graft.t |
|
157 | test-graft.t | |
158 | test-hg-parseurl.py |
|
158 | test-hg-parseurl.py | |
159 | test-hghave.t |
|
159 | test-hghave.t | |
160 | test-hgignore.t |
|
160 | test-hgignore.t | |
161 | test-hgk.t |
|
161 | test-hgk.t | |
162 | test-hgweb-bundle.t |
|
162 | test-hgweb-bundle.t | |
163 | test-hgweb-descend-empties.t |
|
163 | test-hgweb-descend-empties.t | |
164 | test-hgweb-empty.t |
|
164 | test-hgweb-empty.t | |
165 | test-hgweb-removed.t |
|
165 | test-hgweb-removed.t | |
166 | test-hgwebdir-paths.py |
|
166 | test-hgwebdir-paths.py | |
167 | test-hgwebdirsym.t |
|
167 | test-hgwebdirsym.t | |
168 | test-histedit-arguments.t |
|
168 | test-histedit-arguments.t | |
169 | test-histedit-base.t |
|
169 | test-histedit-base.t | |
170 | test-histedit-bookmark-motion.t |
|
170 | test-histedit-bookmark-motion.t | |
171 | test-histedit-commute.t |
|
171 | test-histedit-commute.t | |
172 | test-histedit-drop.t |
|
172 | test-histedit-drop.t | |
173 | test-histedit-edit.t |
|
173 | test-histedit-edit.t | |
174 | test-histedit-fold-non-commute.t |
|
174 | test-histedit-fold-non-commute.t | |
175 | test-histedit-fold.t |
|
175 | test-histedit-fold.t | |
176 | test-histedit-no-change.t |
|
176 | test-histedit-no-change.t | |
177 | test-histedit-non-commute-abort.t |
|
177 | test-histedit-non-commute-abort.t | |
178 | test-histedit-non-commute.t |
|
178 | test-histedit-non-commute.t | |
179 | test-histedit-obsolete.t |
|
179 | test-histedit-obsolete.t | |
180 | test-histedit-outgoing.t |
|
180 | test-histedit-outgoing.t | |
181 | test-histedit-templates.t |
|
181 | test-histedit-templates.t | |
182 | test-http-branchmap.t |
|
182 | test-http-branchmap.t | |
183 | test-http-bundle1.t |
|
183 | test-http-bundle1.t | |
184 | test-http-clone-r.t |
|
184 | test-http-clone-r.t | |
185 | test-http.t |
|
185 | test-http.t | |
186 | test-hybridencode.py |
|
186 | test-hybridencode.py | |
187 | test-identify.t |
|
187 | test-identify.t | |
188 | test-import-unknown.t |
|
188 | test-import-unknown.t | |
189 | test-import.t |
|
189 | test-import.t | |
190 | test-imports-checker.t |
|
190 | test-imports-checker.t | |
191 | test-incoming-outgoing.t |
|
191 | test-incoming-outgoing.t | |
192 | test-inherit-mode.t |
|
192 | test-inherit-mode.t | |
193 | test-issue1089.t |
|
193 | test-issue1089.t | |
194 | test-issue1102.t |
|
194 | test-issue1102.t | |
195 | test-issue1175.t |
|
195 | test-issue1175.t | |
196 | test-issue1306.t |
|
196 | test-issue1306.t | |
197 | test-issue1438.t |
|
197 | test-issue1438.t | |
198 | test-issue1502.t |
|
198 | test-issue1502.t | |
199 | test-issue1802.t |
|
199 | test-issue1802.t | |
200 | test-issue1877.t |
|
200 | test-issue1877.t | |
201 | test-issue1993.t |
|
201 | test-issue1993.t | |
202 | test-issue2137.t |
|
202 | test-issue2137.t | |
203 | test-issue3084.t |
|
203 | test-issue3084.t | |
204 | test-issue4074.t |
|
204 | test-issue4074.t | |
205 | test-issue522.t |
|
205 | test-issue522.t | |
206 | test-issue586.t |
|
206 | test-issue586.t | |
207 | test-issue612.t |
|
207 | test-issue612.t | |
208 | test-issue619.t |
|
208 | test-issue619.t | |
209 | test-issue660.t |
|
209 | test-issue660.t | |
210 | test-issue672.t |
|
210 | test-issue672.t | |
211 | test-issue842.t |
|
211 | test-issue842.t | |
212 | test-journal-exists.t |
|
212 | test-journal-exists.t | |
213 | test-journal-share.t |
|
213 | test-journal-share.t | |
214 | test-journal.t |
|
214 | test-journal.t | |
215 | test-largefiles-cache.t |
|
215 | test-largefiles-cache.t | |
216 | test-largefiles-misc.t |
|
216 | test-largefiles-misc.t | |
217 | test-largefiles-small-disk.t |
|
217 | test-largefiles-small-disk.t | |
218 | test-largefiles-update.t |
|
218 | test-largefiles-update.t | |
219 | test-largefiles.t |
|
219 | test-largefiles.t | |
220 | test-lfs-largefiles.t |
|
220 | test-lfs-largefiles.t | |
221 | test-linerange.py |
|
221 | test-linerange.py | |
222 | test-locate.t |
|
222 | test-locate.t | |
223 | test-lock-badness.t |
|
223 | test-lock-badness.t | |
224 | test-log-linerange.t |
|
224 | test-log-linerange.t | |
225 | test-log.t |
|
225 | test-log.t | |
226 | test-logexchange.t |
|
226 | test-logexchange.t | |
227 | test-lrucachedict.py |
|
227 | test-lrucachedict.py | |
228 | test-mactext.t |
|
228 | test-mactext.t | |
229 | test-mailmap.t |
|
229 | test-mailmap.t | |
230 | test-manifest-merging.t |
|
230 | test-manifest-merging.t | |
231 | test-manifest.py |
|
231 | test-manifest.py | |
232 | test-manifest.t |
|
232 | test-manifest.t | |
233 | test-match.py |
|
233 | test-match.py | |
234 | test-mdiff.py |
|
234 | test-mdiff.py | |
235 | test-merge-changedelete.t |
|
235 | test-merge-changedelete.t | |
236 | test-merge-closedheads.t |
|
236 | test-merge-closedheads.t | |
237 | test-merge-commit.t |
|
237 | test-merge-commit.t | |
238 | test-merge-criss-cross.t |
|
238 | test-merge-criss-cross.t | |
239 | test-merge-default.t |
|
239 | test-merge-default.t | |
240 | test-merge-force.t |
|
240 | test-merge-force.t | |
241 | test-merge-halt.t |
|
241 | test-merge-halt.t | |
242 | test-merge-internal-tools-pattern.t |
|
242 | test-merge-internal-tools-pattern.t | |
243 | test-merge-local.t |
|
243 | test-merge-local.t | |
244 | test-merge-remove.t |
|
244 | test-merge-remove.t | |
245 | test-merge-revert.t |
|
245 | test-merge-revert.t | |
246 | test-merge-revert2.t |
|
246 | test-merge-revert2.t | |
247 | test-merge-subrepos.t |
|
247 | test-merge-subrepos.t | |
248 | test-merge-symlinks.t |
|
248 | test-merge-symlinks.t | |
249 | test-merge-tools.t |
|
249 | test-merge-tools.t | |
250 | test-merge-types.t |
|
250 | test-merge-types.t | |
251 | test-merge1.t |
|
251 | test-merge1.t | |
252 | test-merge10.t |
|
252 | test-merge10.t | |
253 | test-merge2.t |
|
253 | test-merge2.t | |
254 | test-merge4.t |
|
254 | test-merge4.t | |
255 | test-merge5.t |
|
255 | test-merge5.t | |
256 | test-merge6.t |
|
256 | test-merge6.t | |
257 | test-merge7.t |
|
257 | test-merge7.t | |
258 | test-merge8.t |
|
258 | test-merge8.t | |
259 | test-merge9.t |
|
259 | test-merge9.t | |
260 | test-minifileset.py |
|
260 | test-minifileset.py | |
261 | test-minirst.py |
|
261 | test-minirst.py | |
262 | test-mq-git.t |
|
262 | test-mq-git.t | |
263 | test-mq-header-date.t |
|
263 | test-mq-header-date.t | |
264 | test-mq-header-from.t |
|
264 | test-mq-header-from.t | |
265 | test-mq-merge.t |
|
265 | test-mq-merge.t | |
266 | test-mq-pull-from-bundle.t |
|
266 | test-mq-pull-from-bundle.t | |
267 | test-mq-qclone-http.t |
|
267 | test-mq-qclone-http.t | |
268 | test-mq-qdelete.t |
|
268 | test-mq-qdelete.t | |
269 | test-mq-qdiff.t |
|
269 | test-mq-qdiff.t | |
270 | test-mq-qfold.t |
|
270 | test-mq-qfold.t | |
271 | test-mq-qgoto.t |
|
271 | test-mq-qgoto.t | |
272 | test-mq-qimport-fail-cleanup.t |
|
272 | test-mq-qimport-fail-cleanup.t | |
273 | test-mq-qnew.t |
|
273 | test-mq-qnew.t | |
274 | test-mq-qpush-exact.t |
|
274 | test-mq-qpush-exact.t | |
275 | test-mq-qqueue.t |
|
275 | test-mq-qqueue.t | |
276 | test-mq-qrefresh-interactive.t |
|
276 | test-mq-qrefresh-interactive.t | |
277 | test-mq-qrefresh-replace-log-message.t |
|
277 | test-mq-qrefresh-replace-log-message.t | |
278 | test-mq-qrefresh.t |
|
278 | test-mq-qrefresh.t | |
279 | test-mq-qrename.t |
|
279 | test-mq-qrename.t | |
280 | test-mq-qsave.t |
|
280 | test-mq-qsave.t | |
281 | test-mq-safety.t |
|
281 | test-mq-safety.t | |
282 | test-mq-subrepo.t |
|
282 | test-mq-subrepo.t | |
283 | test-mq-symlinks.t |
|
283 | test-mq-symlinks.t | |
284 | test-mv-cp-st-diff.t |
|
284 | test-mv-cp-st-diff.t | |
285 | test-narrow-archive.t |
|
285 | test-narrow-archive.t | |
286 | test-narrow-clone-no-ellipsis.t |
|
286 | test-narrow-clone-no-ellipsis.t | |
287 | test-narrow-clone-non-narrow-server.t |
|
287 | test-narrow-clone-non-narrow-server.t | |
288 | test-narrow-clone-nonlinear.t |
|
288 | test-narrow-clone-nonlinear.t | |
289 | test-narrow-clone.t |
|
289 | test-narrow-clone.t | |
290 | test-narrow-commit.t |
|
290 | test-narrow-commit.t | |
291 | test-narrow-copies.t |
|
291 | test-narrow-copies.t | |
292 | test-narrow-debugcommands.t |
|
292 | test-narrow-debugcommands.t | |
293 | test-narrow-debugrebuilddirstate.t |
|
293 | test-narrow-debugrebuilddirstate.t | |
294 | test-narrow-exchange-merges.t |
|
294 | test-narrow-exchange-merges.t | |
295 | test-narrow-exchange.t |
|
295 | test-narrow-exchange.t | |
296 | test-narrow-expanddirstate.t |
|
296 | test-narrow-expanddirstate.t | |
297 | test-narrow-merge.t |
|
297 | test-narrow-merge.t | |
298 | test-narrow-patch.t |
|
298 | test-narrow-patch.t | |
299 | test-narrow-patterns.t |
|
299 | test-narrow-patterns.t | |
300 | test-narrow-pull.t |
|
300 | test-narrow-pull.t | |
301 | test-narrow-rebase.t |
|
301 | test-narrow-rebase.t | |
302 | test-narrow-shallow-merges.t |
|
302 | test-narrow-shallow-merges.t | |
303 | test-narrow-shallow.t |
|
303 | test-narrow-shallow.t | |
304 | test-narrow-strip.t |
|
304 | test-narrow-strip.t | |
305 | test-narrow-update.t |
|
305 | test-narrow-update.t | |
306 | test-nested-repo.t |
|
306 | test-nested-repo.t | |
307 | test-newbranch.t |
|
307 | test-newbranch.t | |
308 | test-obshistory.t |
|
308 | test-obshistory.t | |
309 | test-obsmarker-template.t |
|
309 | test-obsmarker-template.t | |
310 | test-obsmarkers-effectflag.t |
|
310 | test-obsmarkers-effectflag.t | |
311 | test-obsolete-bundle-strip.t |
|
311 | test-obsolete-bundle-strip.t | |
312 | test-obsolete-changeset-exchange.t |
|
312 | test-obsolete-changeset-exchange.t | |
313 | test-obsolete-checkheads.t |
|
313 | test-obsolete-checkheads.t | |
314 | test-obsolete-distributed.t |
|
314 | test-obsolete-distributed.t | |
315 | test-obsolete-tag-cache.t |
|
315 | test-obsolete-tag-cache.t | |
316 | test-parents.t |
|
316 | test-parents.t | |
|
317 | test-parseindex2.py | |||
317 | test-pathconflicts-merge.t |
|
318 | test-pathconflicts-merge.t | |
318 | test-pathconflicts-update.t |
|
319 | test-pathconflicts-update.t | |
319 | test-pathencode.py |
|
320 | test-pathencode.py | |
320 | test-pending.t |
|
321 | test-pending.t | |
321 | test-permissions.t |
|
322 | test-permissions.t | |
322 | test-phases.t |
|
323 | test-phases.t | |
323 | test-pull-branch.t |
|
324 | test-pull-branch.t | |
324 | test-pull-http.t |
|
325 | test-pull-http.t | |
325 | test-pull-permission.t |
|
326 | test-pull-permission.t | |
326 | test-pull-pull-corruption.t |
|
327 | test-pull-pull-corruption.t | |
327 | test-pull-r.t |
|
328 | test-pull-r.t | |
328 | test-pull-update.t |
|
329 | test-pull-update.t | |
329 | test-purge.t |
|
330 | test-purge.t | |
330 | test-push-checkheads-partial-C1.t |
|
331 | test-push-checkheads-partial-C1.t | |
331 | test-push-checkheads-partial-C2.t |
|
332 | test-push-checkheads-partial-C2.t | |
332 | test-push-checkheads-partial-C3.t |
|
333 | test-push-checkheads-partial-C3.t | |
333 | test-push-checkheads-partial-C4.t |
|
334 | test-push-checkheads-partial-C4.t | |
334 | test-push-checkheads-pruned-B1.t |
|
335 | test-push-checkheads-pruned-B1.t | |
335 | test-push-checkheads-pruned-B2.t |
|
336 | test-push-checkheads-pruned-B2.t | |
336 | test-push-checkheads-pruned-B3.t |
|
337 | test-push-checkheads-pruned-B3.t | |
337 | test-push-checkheads-pruned-B4.t |
|
338 | test-push-checkheads-pruned-B4.t | |
338 | test-push-checkheads-pruned-B5.t |
|
339 | test-push-checkheads-pruned-B5.t | |
339 | test-push-checkheads-pruned-B6.t |
|
340 | test-push-checkheads-pruned-B6.t | |
340 | test-push-checkheads-pruned-B7.t |
|
341 | test-push-checkheads-pruned-B7.t | |
341 | test-push-checkheads-pruned-B8.t |
|
342 | test-push-checkheads-pruned-B8.t | |
342 | test-push-checkheads-superceed-A1.t |
|
343 | test-push-checkheads-superceed-A1.t | |
343 | test-push-checkheads-superceed-A2.t |
|
344 | test-push-checkheads-superceed-A2.t | |
344 | test-push-checkheads-superceed-A3.t |
|
345 | test-push-checkheads-superceed-A3.t | |
345 | test-push-checkheads-superceed-A4.t |
|
346 | test-push-checkheads-superceed-A4.t | |
346 | test-push-checkheads-superceed-A5.t |
|
347 | test-push-checkheads-superceed-A5.t | |
347 | test-push-checkheads-superceed-A6.t |
|
348 | test-push-checkheads-superceed-A6.t | |
348 | test-push-checkheads-superceed-A7.t |
|
349 | test-push-checkheads-superceed-A7.t | |
349 | test-push-checkheads-superceed-A8.t |
|
350 | test-push-checkheads-superceed-A8.t | |
350 | test-push-checkheads-unpushed-D1.t |
|
351 | test-push-checkheads-unpushed-D1.t | |
351 | test-push-checkheads-unpushed-D2.t |
|
352 | test-push-checkheads-unpushed-D2.t | |
352 | test-push-checkheads-unpushed-D3.t |
|
353 | test-push-checkheads-unpushed-D3.t | |
353 | test-push-checkheads-unpushed-D4.t |
|
354 | test-push-checkheads-unpushed-D4.t | |
354 | test-push-checkheads-unpushed-D5.t |
|
355 | test-push-checkheads-unpushed-D5.t | |
355 | test-push-checkheads-unpushed-D6.t |
|
356 | test-push-checkheads-unpushed-D6.t | |
356 | test-push-checkheads-unpushed-D7.t |
|
357 | test-push-checkheads-unpushed-D7.t | |
357 | test-push-http.t |
|
358 | test-push-http.t | |
358 | test-push-warn.t |
|
359 | test-push-warn.t | |
359 | test-pushvars.t |
|
360 | test-pushvars.t | |
360 | test-rebase-abort.t |
|
361 | test-rebase-abort.t | |
361 | test-rebase-base-flag.t |
|
362 | test-rebase-base-flag.t | |
362 | test-rebase-bookmarks.t |
|
363 | test-rebase-bookmarks.t | |
363 | test-rebase-brute-force.t |
|
364 | test-rebase-brute-force.t | |
364 | test-rebase-cache.t |
|
365 | test-rebase-cache.t | |
365 | test-rebase-check-restore.t |
|
366 | test-rebase-check-restore.t | |
366 | test-rebase-collapse.t |
|
367 | test-rebase-collapse.t | |
367 | test-rebase-conflicts.t |
|
368 | test-rebase-conflicts.t | |
368 | test-rebase-dest.t |
|
369 | test-rebase-dest.t | |
369 | test-rebase-detach.t |
|
370 | test-rebase-detach.t | |
370 | test-rebase-emptycommit.t |
|
371 | test-rebase-emptycommit.t | |
371 | test-rebase-inmemory.t |
|
372 | test-rebase-inmemory.t | |
372 | test-rebase-interruptions.t |
|
373 | test-rebase-interruptions.t | |
373 | test-rebase-issue-noparam-single-rev.t |
|
374 | test-rebase-issue-noparam-single-rev.t | |
374 | test-rebase-legacy.t |
|
375 | test-rebase-legacy.t | |
375 | test-rebase-mq-skip.t |
|
376 | test-rebase-mq-skip.t | |
376 | test-rebase-mq.t |
|
377 | test-rebase-mq.t | |
377 | test-rebase-named-branches.t |
|
378 | test-rebase-named-branches.t | |
378 | test-rebase-newancestor.t |
|
379 | test-rebase-newancestor.t | |
379 | test-rebase-obsolete.t |
|
380 | test-rebase-obsolete.t | |
380 | test-rebase-parameters.t |
|
381 | test-rebase-parameters.t | |
381 | test-rebase-partial.t |
|
382 | test-rebase-partial.t | |
382 | test-rebase-pull.t |
|
383 | test-rebase-pull.t | |
383 | test-rebase-rename.t |
|
384 | test-rebase-rename.t | |
384 | test-rebase-scenario-global.t |
|
385 | test-rebase-scenario-global.t | |
385 | test-rebase-templates.t |
|
386 | test-rebase-templates.t | |
386 | test-rebase-transaction.t |
|
387 | test-rebase-transaction.t | |
387 | test-record.t |
|
388 | test-record.t | |
388 | test-relink.t |
|
389 | test-relink.t | |
389 | test-remove.t |
|
390 | test-remove.t | |
390 | test-rename-after-merge.t |
|
391 | test-rename-after-merge.t | |
391 | test-rename-dir-merge.t |
|
392 | test-rename-dir-merge.t | |
392 | test-rename-merge1.t |
|
393 | test-rename-merge1.t | |
393 | test-rename.t |
|
394 | test-rename.t | |
394 | test-repair-strip.t |
|
395 | test-repair-strip.t | |
395 | test-repo-compengines.t |
|
396 | test-repo-compengines.t | |
396 | test-resolve.t |
|
397 | test-resolve.t | |
397 | test-revert-flags.t |
|
398 | test-revert-flags.t | |
398 | test-revert-unknown.t |
|
399 | test-revert-unknown.t | |
399 | test-revlog-ancestry.py |
|
400 | test-revlog-ancestry.py | |
400 | test-revlog-group-emptyiter.t |
|
401 | test-revlog-group-emptyiter.t | |
401 | test-revlog-mmapindex.t |
|
402 | test-revlog-mmapindex.t | |
402 | test-revlog-packentry.t |
|
403 | test-revlog-packentry.t | |
403 | test-revset-dirstate-parents.t |
|
404 | test-revset-dirstate-parents.t | |
404 | test-revset-legacy-lookup.t |
|
405 | test-revset-legacy-lookup.t | |
405 | test-revset-outgoing.t |
|
406 | test-revset-outgoing.t | |
406 | test-rollback.t |
|
407 | test-rollback.t | |
407 | test-run-tests.py |
|
408 | test-run-tests.py | |
408 | test-run-tests.t |
|
409 | test-run-tests.t | |
409 | test-schemes.t |
|
410 | test-schemes.t | |
410 | test-serve.t |
|
411 | test-serve.t | |
411 | test-setdiscovery.t |
|
412 | test-setdiscovery.t | |
412 | test-share.t |
|
413 | test-share.t | |
413 | test-shelve.t |
|
414 | test-shelve.t | |
414 | test-show-stack.t |
|
415 | test-show-stack.t | |
415 | test-show-work.t |
|
416 | test-show-work.t | |
416 | test-show.t |
|
417 | test-show.t | |
417 | test-simple-update.t |
|
418 | test-simple-update.t | |
418 | test-simplemerge.py |
|
419 | test-simplemerge.py | |
419 | test-single-head.t |
|
420 | test-single-head.t | |
420 | test-sparse-clear.t |
|
421 | test-sparse-clear.t | |
421 | test-sparse-import.t |
|
422 | test-sparse-import.t | |
422 | test-sparse-merges.t |
|
423 | test-sparse-merges.t | |
423 | test-sparse-profiles.t |
|
424 | test-sparse-profiles.t | |
424 | test-sparse-requirement.t |
|
425 | test-sparse-requirement.t | |
425 | test-sparse-verbose-json.t |
|
426 | test-sparse-verbose-json.t | |
426 | test-ssh-clone-r.t |
|
427 | test-ssh-clone-r.t | |
427 | test-ssh-proto.t |
|
428 | test-ssh-proto.t | |
428 | test-sshserver.py |
|
429 | test-sshserver.py | |
429 | test-stack.t |
|
430 | test-stack.t | |
430 | test-status-rev.t |
|
431 | test-status-rev.t | |
431 | test-status-terse.t |
|
432 | test-status-terse.t | |
432 | test-strip-cross.t |
|
433 | test-strip-cross.t | |
433 | test-strip.t |
|
434 | test-strip.t | |
434 | test-subrepo-deep-nested-change.t |
|
435 | test-subrepo-deep-nested-change.t | |
435 | test-subrepo-missing.t |
|
436 | test-subrepo-missing.t | |
436 | test-subrepo-recursion.t |
|
437 | test-subrepo-recursion.t | |
437 | test-subrepo-relative-path.t |
|
438 | test-subrepo-relative-path.t | |
438 | test-subrepo.t |
|
439 | test-subrepo.t | |
439 | test-symlinks.t |
|
440 | test-symlinks.t | |
440 | test-tag.t |
|
441 | test-tag.t | |
441 | test-tags.t |
|
442 | test-tags.t | |
442 | test-template-engine.t |
|
443 | test-template-engine.t | |
443 | test-treemanifest.t |
|
444 | test-treemanifest.t | |
444 | test-unamend.t |
|
445 | test-unamend.t | |
445 | test-uncommit.t |
|
446 | test-uncommit.t | |
446 | test-unified-test.t |
|
447 | test-unified-test.t | |
447 | test-unrelated-pull.t |
|
448 | test-unrelated-pull.t | |
448 | test-up-local-change.t |
|
449 | test-up-local-change.t | |
449 | test-update-branches.t |
|
450 | test-update-branches.t | |
450 | test-update-dest.t |
|
451 | test-update-dest.t | |
451 | test-update-issue1456.t |
|
452 | test-update-issue1456.t | |
452 | test-update-names.t |
|
453 | test-update-names.t | |
453 | test-update-reverse.t |
|
454 | test-update-reverse.t | |
454 | test-upgrade-repo.t |
|
455 | test-upgrade-repo.t | |
455 | test-url-download.t |
|
456 | test-url-download.t | |
456 | test-url-rev.t |
|
457 | test-url-rev.t | |
457 | test-url.py |
|
458 | test-url.py | |
458 | test-username-newline.t |
|
459 | test-username-newline.t | |
459 | test-verify.t |
|
460 | test-verify.t | |
460 | test-walkrepo.py |
|
461 | test-walkrepo.py | |
461 | test-websub.t |
|
462 | test-websub.t | |
462 | test-win32text.t |
|
463 | test-win32text.t | |
463 | test-wireproto-clientreactor.py |
|
464 | test-wireproto-clientreactor.py | |
464 | test-wireproto-framing.py |
|
465 | test-wireproto-framing.py | |
465 | test-wireproto-serverreactor.py |
|
466 | test-wireproto-serverreactor.py | |
466 | test-xdg.t |
|
467 | test-xdg.t |
@@ -1,218 +1,218 | |||||
1 | """This unit test primarily tests parsers.parse_index2(). |
|
1 | """This unit test primarily tests parsers.parse_index2(). | |
2 |
|
2 | |||
3 | It also checks certain aspects of the parsers module as a whole. |
|
3 | It also checks certain aspects of the parsers module as a whole. | |
4 | """ |
|
4 | """ | |
5 |
|
5 | |||
6 | from __future__ import absolute_import, print_function |
|
6 | from __future__ import absolute_import, print_function | |
7 |
|
7 | |||
8 | import struct |
|
8 | import struct | |
9 | import subprocess |
|
9 | import subprocess | |
10 | import sys |
|
10 | import sys | |
11 |
|
11 | |||
12 | from mercurial.node import ( |
|
12 | from mercurial.node import ( | |
13 | nullid, |
|
13 | nullid, | |
14 | nullrev, |
|
14 | nullrev, | |
15 | ) |
|
15 | ) | |
16 | from mercurial import ( |
|
16 | from mercurial import ( | |
17 | policy, |
|
17 | policy, | |
18 | ) |
|
18 | ) | |
19 |
|
19 | |||
20 | parsers = policy.importmod(r'parsers') |
|
20 | parsers = policy.importmod(r'parsers') | |
21 |
|
21 | |||
22 | # original python implementation |
|
22 | # original python implementation | |
23 | def gettype(q): |
|
23 | def gettype(q): | |
24 | return int(q & 0xFFFF) |
|
24 | return int(q & 0xFFFF) | |
25 |
|
25 | |||
26 | def offset_type(offset, type): |
|
26 | def offset_type(offset, type): | |
27 |
return |
|
27 | return int(int(offset) << 16 | type) | |
28 |
|
28 | |||
29 | indexformatng = ">Qiiiiii20s12x" |
|
29 | indexformatng = ">Qiiiiii20s12x" | |
30 |
|
30 | |||
31 | def py_parseindex(data, inline) : |
|
31 | def py_parseindex(data, inline) : | |
32 | s = 64 |
|
32 | s = 64 | |
33 | cache = None |
|
33 | cache = None | |
34 | index = [] |
|
34 | index = [] | |
35 | nodemap = {nullid: nullrev} |
|
35 | nodemap = {nullid: nullrev} | |
36 | n = off = 0 |
|
36 | n = off = 0 | |
37 |
|
37 | |||
38 | l = len(data) - s |
|
38 | l = len(data) - s | |
39 | append = index.append |
|
39 | append = index.append | |
40 | if inline: |
|
40 | if inline: | |
41 | cache = (0, data) |
|
41 | cache = (0, data) | |
42 | while off <= l: |
|
42 | while off <= l: | |
43 | e = struct.unpack(indexformatng, data[off:off + s]) |
|
43 | e = struct.unpack(indexformatng, data[off:off + s]) | |
44 | nodemap[e[7]] = n |
|
44 | nodemap[e[7]] = n | |
45 | append(e) |
|
45 | append(e) | |
46 | n += 1 |
|
46 | n += 1 | |
47 | if e[1] < 0: |
|
47 | if e[1] < 0: | |
48 | break |
|
48 | break | |
49 | off += e[1] + s |
|
49 | off += e[1] + s | |
50 | else: |
|
50 | else: | |
51 | while off <= l: |
|
51 | while off <= l: | |
52 | e = struct.unpack(indexformatng, data[off:off + s]) |
|
52 | e = struct.unpack(indexformatng, data[off:off + s]) | |
53 | nodemap[e[7]] = n |
|
53 | nodemap[e[7]] = n | |
54 | append(e) |
|
54 | append(e) | |
55 | n += 1 |
|
55 | n += 1 | |
56 | off += s |
|
56 | off += s | |
57 |
|
57 | |||
58 | e = list(index[0]) |
|
58 | e = list(index[0]) | |
59 | type = gettype(e[0]) |
|
59 | type = gettype(e[0]) | |
60 | e[0] = offset_type(0, type) |
|
60 | e[0] = offset_type(0, type) | |
61 | index[0] = tuple(e) |
|
61 | index[0] = tuple(e) | |
62 |
|
62 | |||
63 | # add the magic null revision at -1 |
|
63 | # add the magic null revision at -1 | |
64 | index.append((0, 0, 0, -1, -1, -1, -1, nullid)) |
|
64 | index.append((0, 0, 0, -1, -1, -1, -1, nullid)) | |
65 |
|
65 | |||
66 | return index, cache |
|
66 | return index, cache | |
67 |
|
67 | |||
68 | data_inlined = ( |
|
68 | data_inlined = ( | |
69 | '\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x01\x8c' |
|
69 | b'\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x01\x8c' | |
70 | '\x00\x00\x04\x07\x00\x00\x00\x00\x00\x00\x15\x15\xff\xff\xff' |
|
70 | b'\x00\x00\x04\x07\x00\x00\x00\x00\x00\x00\x15\x15\xff\xff\xff' | |
71 | '\xff\xff\xff\xff\xff\xebG\x97\xb7\x1fB\x04\xcf\x13V\x81\tw\x1b' |
|
71 | b'\xff\xff\xff\xff\xff\xebG\x97\xb7\x1fB\x04\xcf\x13V\x81\tw\x1b' | |
72 | 'w\xdduR\xda\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
|
72 | b'w\xdduR\xda\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
73 | 'x\x9c\x9d\x93?O\xc30\x10\xc5\xf7|\x8a\xdb\x9a\xa8m\x06\xd8*\x95' |
|
73 | b'x\x9c\x9d\x93?O\xc30\x10\xc5\xf7|\x8a\xdb\x9a\xa8m\x06\xd8*\x95' | |
74 | '\x81B\xa1\xa2\xa2R\xcb\x86Pd\x9a\x0b5$vd_\x04\xfd\xf6\x9c\xff@' |
|
74 | b'\x81B\xa1\xa2\xa2R\xcb\x86Pd\x9a\x0b5$vd_\x04\xfd\xf6\x9c\xff@' | |
75 | '\x11!\x0b\xd9\xec\xf7\xbbw\xe7gG6\xad6\x04\xdaN\xc0\x92\xa0$)' |
|
75 | b'\x11!\x0b\xd9\xec\xf7\xbbw\xe7gG6\xad6\x04\xdaN\xc0\x92\xa0$)' | |
76 | '\xb1\x82\xa2\xd1%\x16\xa4\x8b7\xa9\xca\xd4-\xb2Y\x02\xfc\xc9' |
|
76 | b'\xb1\x82\xa2\xd1%\x16\xa4\x8b7\xa9\xca\xd4-\xb2Y\x02\xfc\xc9' | |
77 | '\xcaS\xf9\xaeX\xed\xb6\xd77Q\x02\x83\xd4\x19\xf5--Y\xea\xe1W' |
|
77 | b'\xcaS\xf9\xaeX\xed\xb6\xd77Q\x02\x83\xd4\x19\xf5--Y\xea\xe1W' | |
78 | '\xab\xed\x10\xceR\x0f_\xdf\xdf\r\xe1,\xf5\xf0\xcb\xf5 \xceR\x0f' |
|
78 | b'\xab\xed\x10\xceR\x0f_\xdf\xdf\r\xe1,\xf5\xf0\xcb\xf5 \xceR\x0f' | |
79 | '_\xdc\x0e\x0e\xc3R\x0f_\xae\x96\x9b!\x9e\xa5\x1e\xbf\xdb,\x06' |
|
79 | b'_\xdc\x0e\x0e\xc3R\x0f_\xae\x96\x9b!\x9e\xa5\x1e\xbf\xdb,\x06' | |
80 | '\xc7q\x9a/\x88\x82\xc3B\xea\xb5\xb4TJ\x93\xb6\x82\x0e\xe16\xe6' |
|
80 | b'\xc7q\x9a/\x88\x82\xc3B\xea\xb5\xb4TJ\x93\xb6\x82\x0e\xe16\xe6' | |
81 | 'KQ\xdb\xaf\xecG\xa3\xd1 \x01\xd3\x0b_^\xe8\xaa\xa0\xae\xad\xd1' |
|
81 | b'KQ\xdb\xaf\xecG\xa3\xd1 \x01\xd3\x0b_^\xe8\xaa\xa0\xae\xad\xd1' | |
82 | '&\xbef\x1bz\x08\xb0|\xc9Xz\x06\xf6Z\x91\x90J\xaa\x17\x90\xaa' |
|
82 | b'&\xbef\x1bz\x08\xb0|\xc9Xz\x06\xf6Z\x91\x90J\xaa\x17\x90\xaa' | |
83 | '\xd2\xa6\x11$5C\xcf\xba#\xa0\x03\x02*2\x92-\xfc\xb1\x94\xdf\xe2' |
|
83 | b'\xd2\xa6\x11$5C\xcf\xba#\xa0\x03\x02*2\x92-\xfc\xb1\x94\xdf\xe2' | |
84 | '\xae\xb8\'m\x8ey0^\x85\xd3\x82\xb4\xf0`:\x9c\x00\x8a\xfd\x01' |
|
84 | b'\xae\xb8\'m\x8ey0^\x85\xd3\x82\xb4\xf0`:\x9c\x00\x8a\xfd\x01' | |
85 | '\xb0\xc6\x86\x8b\xdd\xae\x80\xf3\xa9\x9fd\x16\n\x00R%\x1a\x06' |
|
85 | b'\xb0\xc6\x86\x8b\xdd\xae\x80\xf3\xa9\x9fd\x16\n\x00R%\x1a\x06' | |
86 | '\xe9\xd8b\x98\x1d\xf4\xf3+\x9bf\x01\xd8p\x1b\xf3.\xed\x9f^g\xc3' |
|
86 | b'\xe9\xd8b\x98\x1d\xf4\xf3+\x9bf\x01\xd8p\x1b\xf3.\xed\x9f^g\xc3' | |
87 | '^\xd9W81T\xdb\xd5\x04sx|\xf2\xeb\xd6`%?x\xed"\x831\xbf\xf3\xdc' |
|
87 | b'^\xd9W81T\xdb\xd5\x04sx|\xf2\xeb\xd6`%?x\xed"\x831\xbf\xf3\xdc' | |
88 | 'b\xeb%gaY\xe1\xad\x9f\xb9f\'1w\xa9\xa5a\x83s\x82J\xb98\xbc4\x8b' |
|
88 | b'b\xeb%gaY\xe1\xad\x9f\xb9f\'1w\xa9\xa5a\x83s\x82J\xb98\xbc4\x8b' | |
89 | '\x83\x00\x9f$z\xb8#\xa5\xb1\xdf\x98\xd9\xec\x1b\x89O\xe3Ts\x9a4' |
|
89 | b'\x83\x00\x9f$z\xb8#\xa5\xb1\xdf\x98\xd9\xec\x1b\x89O\xe3Ts\x9a4' | |
90 | '\x17m\x8b\xfc\x8f\xa5\x95\x9a\xfc\xfa\xed,\xe5|\xa1\xfe\x15\xb9' |
|
90 | b'\x17m\x8b\xfc\x8f\xa5\x95\x9a\xfc\xfa\xed,\xe5|\xa1\xfe\x15\xb9' | |
91 | '\xbc\xb2\x93\x1f\xf2\x95\xff\xdf,\x1a\xc5\xe7\x17*\x93Oz:>\x0e' |
|
91 | b'\xbc\xb2\x93\x1f\xf2\x95\xff\xdf,\x1a\xc5\xe7\x17*\x93Oz:>\x0e' | |
92 | ) |
|
92 | ) | |
93 |
|
93 | |||
94 | data_non_inlined = ( |
|
94 | data_non_inlined = ( | |
95 | '\x00\x00\x00\x01\x00\x00\x00\x00\x00\x01D\x19' |
|
95 | b'\x00\x00\x00\x01\x00\x00\x00\x00\x00\x01D\x19' | |
96 | '\x00\x07e\x12\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff' |
|
96 | b'\x00\x07e\x12\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff' | |
97 | '\xff\xff\xff\xff\xd1\xf4\xbb\xb0\xbe\xfc\x13\xbd\x8c\xd3\x9d' |
|
97 | b'\xff\xff\xff\xff\xd1\xf4\xbb\xb0\xbe\xfc\x13\xbd\x8c\xd3\x9d' | |
98 | '\x0f\xcd\xd9;\x8c\x07\x8cJ/\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
|
98 | b'\x0f\xcd\xd9;\x8c\x07\x8cJ/\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
99 | '\x00\x00\x00\x00\x00\x00\x01D\x19\x00\x00\x00\x00\x00\xdf\x00' |
|
99 | b'\x00\x00\x00\x00\x00\x00\x01D\x19\x00\x00\x00\x00\x00\xdf\x00' | |
100 | '\x00\x01q\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\xff' |
|
100 | b'\x00\x01q\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\xff' | |
101 | '\xff\xff\xff\xc1\x12\xb9\x04\x96\xa4Z1t\x91\xdfsJ\x90\xf0\x9bh' |
|
101 | b'\xff\xff\xff\xc1\x12\xb9\x04\x96\xa4Z1t\x91\xdfsJ\x90\xf0\x9bh' | |
102 | '\x07l&\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
|
102 | b'\x07l&\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
103 | '\x00\x01D\xf8\x00\x00\x00\x00\x01\x1b\x00\x00\x01\xb8\x00\x00' |
|
103 | b'\x00\x01D\xf8\x00\x00\x00\x00\x01\x1b\x00\x00\x01\xb8\x00\x00' | |
104 | '\x00\x01\x00\x00\x00\x02\x00\x00\x00\x01\xff\xff\xff\xff\x02\n' |
|
104 | b'\x00\x01\x00\x00\x00\x02\x00\x00\x00\x01\xff\xff\xff\xff\x02\n' | |
105 | '\x0e\xc6&\xa1\x92\xae6\x0b\x02i\xfe-\xe5\xbao\x05\xd1\xe7\x00' |
|
105 | b'\x0e\xc6&\xa1\x92\xae6\x0b\x02i\xfe-\xe5\xbao\x05\xd1\xe7\x00' | |
106 | '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01F' |
|
106 | b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01F' | |
107 | '\x13\x00\x00\x00\x00\x01\xec\x00\x00\x03\x06\x00\x00\x00\x01' |
|
107 | b'\x13\x00\x00\x00\x00\x01\xec\x00\x00\x03\x06\x00\x00\x00\x01' | |
108 | '\x00\x00\x00\x03\x00\x00\x00\x02\xff\xff\xff\xff\x12\xcb\xeby1' |
|
108 | b'\x00\x00\x00\x03\x00\x00\x00\x02\xff\xff\xff\xff\x12\xcb\xeby1' | |
109 | '\xb6\r\x98B\xcb\x07\xbd`\x8f\x92\xd9\xc4\x84\xbdK\x00\x00\x00' |
|
109 | b'\xb6\r\x98B\xcb\x07\xbd`\x8f\x92\xd9\xc4\x84\xbdK\x00\x00\x00' | |
110 | '\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
|
110 | b'\x00\x00\x00\x00\x00\x00\x00\x00\x00' | |
111 | ) |
|
111 | ) | |
112 |
|
112 | |||
113 | def parse_index2(data, inline): |
|
113 | def parse_index2(data, inline): | |
114 | index, chunkcache = parsers.parse_index2(data, inline) |
|
114 | index, chunkcache = parsers.parse_index2(data, inline) | |
115 | return list(index), chunkcache |
|
115 | return list(index), chunkcache | |
116 |
|
116 | |||
117 | def importparsers(hexversion): |
|
117 | def importparsers(hexversion): | |
118 | """Import mercurial.parsers with the given sys.hexversion.""" |
|
118 | """Import mercurial.parsers with the given sys.hexversion.""" | |
119 | # The file parsers.c inspects sys.hexversion to determine the version |
|
119 | # The file parsers.c inspects sys.hexversion to determine the version | |
120 | # of the currently-running Python interpreter, so we monkey-patch |
|
120 | # of the currently-running Python interpreter, so we monkey-patch | |
121 | # sys.hexversion to simulate using different versions. |
|
121 | # sys.hexversion to simulate using different versions. | |
122 | code = ("import sys; sys.hexversion=%s; " |
|
122 | code = ("import sys; sys.hexversion=%s; " | |
123 | "import mercurial.cext.parsers" % hexversion) |
|
123 | "import mercurial.cext.parsers" % hexversion) | |
124 | cmd = "python -c \"%s\"" % code |
|
124 | cmd = "python -c \"%s\"" % code | |
125 | # We need to do these tests inside a subprocess because parser.c's |
|
125 | # We need to do these tests inside a subprocess because parser.c's | |
126 | # version-checking code happens inside the module init function, and |
|
126 | # version-checking code happens inside the module init function, and | |
127 | # when using reload() to reimport an extension module, "The init function |
|
127 | # when using reload() to reimport an extension module, "The init function | |
128 | # of extension modules is not called a second time" |
|
128 | # of extension modules is not called a second time" | |
129 | # (from http://docs.python.org/2/library/functions.html?#reload). |
|
129 | # (from http://docs.python.org/2/library/functions.html?#reload). | |
130 | p = subprocess.Popen(cmd, shell=True, |
|
130 | p = subprocess.Popen(cmd, shell=True, | |
131 | stdout=subprocess.PIPE, stderr=subprocess.STDOUT) |
|
131 | stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | |
132 | return p.communicate() # returns stdout, stderr |
|
132 | return p.communicate() # returns stdout, stderr | |
133 |
|
133 | |||
134 | def printhexfail(testnumber, hexversion, stdout, expected): |
|
134 | def printhexfail(testnumber, hexversion, stdout, expected): | |
135 | try: |
|
135 | try: | |
136 | hexstring = hex(hexversion) |
|
136 | hexstring = hex(hexversion) | |
137 | except TypeError: |
|
137 | except TypeError: | |
138 | hexstring = None |
|
138 | hexstring = None | |
139 | print("FAILED: version test #%s with Python %s and patched " |
|
139 | print("FAILED: version test #%s with Python %s and patched " | |
140 | "sys.hexversion %r (%r):\n Expected %s but got:\n-->'%s'\n" % |
|
140 | "sys.hexversion %r (%r):\n Expected %s but got:\n-->'%s'\n" % | |
141 | (testnumber, sys.version_info, hexversion, hexstring, expected, |
|
141 | (testnumber, sys.version_info, hexversion, hexstring, expected, | |
142 | stdout)) |
|
142 | stdout)) | |
143 |
|
143 | |||
144 | def testversionokay(testnumber, hexversion): |
|
144 | def testversionokay(testnumber, hexversion): | |
145 | stdout, stderr = importparsers(hexversion) |
|
145 | stdout, stderr = importparsers(hexversion) | |
146 | if stdout: |
|
146 | if stdout: | |
147 | printhexfail(testnumber, hexversion, stdout, expected="no stdout") |
|
147 | printhexfail(testnumber, hexversion, stdout, expected="no stdout") | |
148 |
|
148 | |||
149 | def testversionfail(testnumber, hexversion): |
|
149 | def testversionfail(testnumber, hexversion): | |
150 | stdout, stderr = importparsers(hexversion) |
|
150 | stdout, stderr = importparsers(hexversion) | |
151 | # We include versionerrortext to distinguish from other ImportErrors. |
|
151 | # We include versionerrortext to distinguish from other ImportErrors. | |
152 | errtext = "ImportError: %s" % parsers.versionerrortext |
|
152 | errtext = "ImportError: %s" % parsers.versionerrortext | |
153 | if errtext not in stdout: |
|
153 | if errtext not in stdout: | |
154 | printhexfail(testnumber, hexversion, stdout, |
|
154 | printhexfail(testnumber, hexversion, stdout, | |
155 | expected="stdout to contain %r" % errtext) |
|
155 | expected="stdout to contain %r" % errtext) | |
156 |
|
156 | |||
157 | def makehex(major, minor, micro): |
|
157 | def makehex(major, minor, micro): | |
158 | return int("%x%02x%02x00" % (major, minor, micro), 16) |
|
158 | return int("%x%02x%02x00" % (major, minor, micro), 16) | |
159 |
|
159 | |||
160 | def runversiontests(): |
|
160 | def runversiontests(): | |
161 | """Check the version-detection logic when importing parsers.""" |
|
161 | """Check the version-detection logic when importing parsers.""" | |
162 | info = sys.version_info |
|
162 | info = sys.version_info | |
163 | major, minor, micro = info[0], info[1], info[2] |
|
163 | major, minor, micro = info[0], info[1], info[2] | |
164 | # Test same major-minor versions. |
|
164 | # Test same major-minor versions. | |
165 | testversionokay(1, makehex(major, minor, micro)) |
|
165 | testversionokay(1, makehex(major, minor, micro)) | |
166 | testversionokay(2, makehex(major, minor, micro + 1)) |
|
166 | testversionokay(2, makehex(major, minor, micro + 1)) | |
167 | # Test different major-minor versions. |
|
167 | # Test different major-minor versions. | |
168 | testversionfail(3, makehex(major + 1, minor, micro)) |
|
168 | testversionfail(3, makehex(major + 1, minor, micro)) | |
169 | testversionfail(4, makehex(major, minor + 1, micro)) |
|
169 | testversionfail(4, makehex(major, minor + 1, micro)) | |
170 | testversionfail(5, "'foo'") |
|
170 | testversionfail(5, "'foo'") | |
171 |
|
171 | |||
172 | def runtest() : |
|
172 | def runtest() : | |
173 | # Only test the version-detection logic if it is present. |
|
173 | # Only test the version-detection logic if it is present. | |
174 | try: |
|
174 | try: | |
175 | parsers.versionerrortext |
|
175 | parsers.versionerrortext | |
176 | except AttributeError: |
|
176 | except AttributeError: | |
177 | pass |
|
177 | pass | |
178 | else: |
|
178 | else: | |
179 | runversiontests() |
|
179 | runversiontests() | |
180 |
|
180 | |||
181 | # Check that parse_index2() raises TypeError on bad arguments. |
|
181 | # Check that parse_index2() raises TypeError on bad arguments. | |
182 | try: |
|
182 | try: | |
183 | parse_index2(0, True) |
|
183 | parse_index2(0, True) | |
184 | except TypeError: |
|
184 | except TypeError: | |
185 | pass |
|
185 | pass | |
186 | else: |
|
186 | else: | |
187 | print("Expected to get TypeError.") |
|
187 | print("Expected to get TypeError.") | |
188 |
|
188 | |||
189 | # Check parsers.parse_index2() on an index file against the original |
|
189 | # Check parsers.parse_index2() on an index file against the original | |
190 | # Python implementation of parseindex, both with and without inlined data. |
|
190 | # Python implementation of parseindex, both with and without inlined data. | |
191 |
|
191 | |||
192 | py_res_1 = py_parseindex(data_inlined, True) |
|
192 | py_res_1 = py_parseindex(data_inlined, True) | |
193 | c_res_1 = parse_index2(data_inlined, True) |
|
193 | c_res_1 = parse_index2(data_inlined, True) | |
194 |
|
194 | |||
195 | py_res_2 = py_parseindex(data_non_inlined, False) |
|
195 | py_res_2 = py_parseindex(data_non_inlined, False) | |
196 | c_res_2 = parse_index2(data_non_inlined, False) |
|
196 | c_res_2 = parse_index2(data_non_inlined, False) | |
197 |
|
197 | |||
198 | if py_res_1 != c_res_1: |
|
198 | if py_res_1 != c_res_1: | |
199 | print("Parse index result (with inlined data) differs!") |
|
199 | print("Parse index result (with inlined data) differs!") | |
200 |
|
200 | |||
201 | if py_res_2 != c_res_2: |
|
201 | if py_res_2 != c_res_2: | |
202 | print("Parse index result (no inlined data) differs!") |
|
202 | print("Parse index result (no inlined data) differs!") | |
203 |
|
203 | |||
204 | ix = parsers.parse_index2(data_inlined, True)[0] |
|
204 | ix = parsers.parse_index2(data_inlined, True)[0] | |
205 | for i, r in enumerate(ix): |
|
205 | for i, r in enumerate(ix): | |
206 | if r[7] == nullid: |
|
206 | if r[7] == nullid: | |
207 | i = -1 |
|
207 | i = -1 | |
208 | try: |
|
208 | try: | |
209 | if ix[r[7]] != i: |
|
209 | if ix[r[7]] != i: | |
210 | print('Reverse lookup inconsistent for %r' |
|
210 | print('Reverse lookup inconsistent for %r' | |
211 | % r[7].encode('hex')) |
|
211 | % r[7].encode('hex')) | |
212 | except TypeError: |
|
212 | except TypeError: | |
213 | # pure version doesn't support this |
|
213 | # pure version doesn't support this | |
214 | break |
|
214 | break | |
215 |
|
215 | |||
216 | print("done") |
|
216 | print("done") | |
217 |
|
217 | |||
218 | runtest() |
|
218 | runtest() |
General Comments 0
You need to be logged in to leave comments.
Login now