##// END OF EJS Templates
tests: port test-simplekeyvaluefile.py to Python 3...
Augie Fackler -
r37958:6eca47f6 default
parent child Browse files
Show More
@@ -1,484 +1,485 b''
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-cbor.py
39 test-cbor.py
40 test-censor.t
40 test-censor.t
41 test-changelog-exec.t
41 test-changelog-exec.t
42 test-check-commit.t
42 test-check-commit.t
43 test-check-execute.t
43 test-check-execute.t
44 test-check-interfaces.py
44 test-check-interfaces.py
45 test-check-module-imports.t
45 test-check-module-imports.t
46 test-check-pyflakes.t
46 test-check-pyflakes.t
47 test-check-pylint.t
47 test-check-pylint.t
48 test-check-shbang.t
48 test-check-shbang.t
49 test-children.t
49 test-children.t
50 test-clone-cgi.t
50 test-clone-cgi.t
51 test-clone-pull-corruption.t
51 test-clone-pull-corruption.t
52 test-clone-r.t
52 test-clone-r.t
53 test-clone-update-order.t
53 test-clone-update-order.t
54 test-command-template.t
54 test-command-template.t
55 test-commit-amend.t
55 test-commit-amend.t
56 test-commit-interactive.t
56 test-commit-interactive.t
57 test-commit-multiple.t
57 test-commit-multiple.t
58 test-commit-unresolved.t
58 test-commit-unresolved.t
59 test-commit.t
59 test-commit.t
60 test-committer.t
60 test-committer.t
61 test-completion.t
61 test-completion.t
62 test-config-env.py
62 test-config-env.py
63 test-config.t
63 test-config.t
64 test-conflict.t
64 test-conflict.t
65 test-confused-revert.t
65 test-confused-revert.t
66 test-context.py
66 test-context.py
67 test-contrib-check-code.t
67 test-contrib-check-code.t
68 test-contrib-check-commit.t
68 test-contrib-check-commit.t
69 test-convert-authormap.t
69 test-convert-authormap.t
70 test-convert-clonebranches.t
70 test-convert-clonebranches.t
71 test-convert-cvs-branch.t
71 test-convert-cvs-branch.t
72 test-convert-cvs-detectmerge.t
72 test-convert-cvs-detectmerge.t
73 test-convert-cvs.t
73 test-convert-cvs.t
74 test-convert-datesort.t
74 test-convert-datesort.t
75 test-convert-filemap.t
75 test-convert-filemap.t
76 test-convert-hg-sink.t
76 test-convert-hg-sink.t
77 test-convert-hg-source.t
77 test-convert-hg-source.t
78 test-convert-hg-startrev.t
78 test-convert-hg-startrev.t
79 test-convert-splicemap.t
79 test-convert-splicemap.t
80 test-convert-tagsbranch-topology.t
80 test-convert-tagsbranch-topology.t
81 test-copy-move-merge.t
81 test-copy-move-merge.t
82 test-copy.t
82 test-copy.t
83 test-copytrace-heuristics.t
83 test-copytrace-heuristics.t
84 test-debugbuilddag.t
84 test-debugbuilddag.t
85 test-debugbundle.t
85 test-debugbundle.t
86 test-debugextensions.t
86 test-debugextensions.t
87 test-debugindexdot.t
87 test-debugindexdot.t
88 test-debugrename.t
88 test-debugrename.t
89 test-default-push.t
89 test-default-push.t
90 test-diff-binary-file.t
90 test-diff-binary-file.t
91 test-diff-change.t
91 test-diff-change.t
92 test-diff-copy-depth.t
92 test-diff-copy-depth.t
93 test-diff-hashes.t
93 test-diff-hashes.t
94 test-diff-ignore-whitespace.t
94 test-diff-ignore-whitespace.t
95 test-diff-indent-heuristic.t
95 test-diff-indent-heuristic.t
96 test-diff-issue2761.t
96 test-diff-issue2761.t
97 test-diff-newlines.t
97 test-diff-newlines.t
98 test-diff-reverse.t
98 test-diff-reverse.t
99 test-diff-subdir.t
99 test-diff-subdir.t
100 test-diff-unified.t
100 test-diff-unified.t
101 test-diff-upgrade.t
101 test-diff-upgrade.t
102 test-diffdir.t
102 test-diffdir.t
103 test-diffstat.t
103 test-diffstat.t
104 test-directaccess.t
104 test-directaccess.t
105 test-dirstate-backup.t
105 test-dirstate-backup.t
106 test-dirstate-nonnormalset.t
106 test-dirstate-nonnormalset.t
107 test-dirstate.t
107 test-dirstate.t
108 test-dispatch.py
108 test-dispatch.py
109 test-doctest.py
109 test-doctest.py
110 test-double-merge.t
110 test-double-merge.t
111 test-drawdag.t
111 test-drawdag.t
112 test-duplicateoptions.py
112 test-duplicateoptions.py
113 test-editor-filename.t
113 test-editor-filename.t
114 test-empty-dir.t
114 test-empty-dir.t
115 test-empty-file.t
115 test-empty-file.t
116 test-empty-group.t
116 test-empty-group.t
117 test-empty.t
117 test-empty.t
118 test-encode.t
118 test-encode.t
119 test-encoding-func.py
119 test-encoding-func.py
120 test-encoding.t
120 test-encoding.t
121 test-eol-add.t
121 test-eol-add.t
122 test-eol-clone.t
122 test-eol-clone.t
123 test-eol-hook.t
123 test-eol-hook.t
124 test-eol-tag.t
124 test-eol-tag.t
125 test-eol-update.t
125 test-eol-update.t
126 test-excessive-merge.t
126 test-excessive-merge.t
127 test-exchange-obsmarkers-case-A1.t
127 test-exchange-obsmarkers-case-A1.t
128 test-exchange-obsmarkers-case-A2.t
128 test-exchange-obsmarkers-case-A2.t
129 test-exchange-obsmarkers-case-A3.t
129 test-exchange-obsmarkers-case-A3.t
130 test-exchange-obsmarkers-case-A4.t
130 test-exchange-obsmarkers-case-A4.t
131 test-exchange-obsmarkers-case-A5.t
131 test-exchange-obsmarkers-case-A5.t
132 test-exchange-obsmarkers-case-A6.t
132 test-exchange-obsmarkers-case-A6.t
133 test-exchange-obsmarkers-case-A7.t
133 test-exchange-obsmarkers-case-A7.t
134 test-exchange-obsmarkers-case-B1.t
134 test-exchange-obsmarkers-case-B1.t
135 test-exchange-obsmarkers-case-B2.t
135 test-exchange-obsmarkers-case-B2.t
136 test-exchange-obsmarkers-case-B3.t
136 test-exchange-obsmarkers-case-B3.t
137 test-exchange-obsmarkers-case-B4.t
137 test-exchange-obsmarkers-case-B4.t
138 test-exchange-obsmarkers-case-B5.t
138 test-exchange-obsmarkers-case-B5.t
139 test-exchange-obsmarkers-case-B6.t
139 test-exchange-obsmarkers-case-B6.t
140 test-exchange-obsmarkers-case-B7.t
140 test-exchange-obsmarkers-case-B7.t
141 test-exchange-obsmarkers-case-C1.t
141 test-exchange-obsmarkers-case-C1.t
142 test-exchange-obsmarkers-case-C2.t
142 test-exchange-obsmarkers-case-C2.t
143 test-exchange-obsmarkers-case-C3.t
143 test-exchange-obsmarkers-case-C3.t
144 test-exchange-obsmarkers-case-C4.t
144 test-exchange-obsmarkers-case-C4.t
145 test-exchange-obsmarkers-case-D1.t
145 test-exchange-obsmarkers-case-D1.t
146 test-exchange-obsmarkers-case-D2.t
146 test-exchange-obsmarkers-case-D2.t
147 test-exchange-obsmarkers-case-D3.t
147 test-exchange-obsmarkers-case-D3.t
148 test-exchange-obsmarkers-case-D4.t
148 test-exchange-obsmarkers-case-D4.t
149 test-execute-bit.t
149 test-execute-bit.t
150 test-export.t
150 test-export.t
151 test-extdata.t
151 test-extdata.t
152 test-extdiff.t
152 test-extdiff.t
153 test-extensions-wrapfunction.py
153 test-extensions-wrapfunction.py
154 test-extra-filelog-entry.t
154 test-extra-filelog-entry.t
155 test-filebranch.t
155 test-filebranch.t
156 test-filecache.py
156 test-filecache.py
157 test-filelog.py
157 test-filelog.py
158 test-fileset-generated.t
158 test-fileset-generated.t
159 test-fix-topology.t
159 test-fix-topology.t
160 test-flags.t
160 test-flags.t
161 test-generaldelta.t
161 test-generaldelta.t
162 test-getbundle.t
162 test-getbundle.t
163 test-git-export.t
163 test-git-export.t
164 test-glog-topological.t
164 test-glog-topological.t
165 test-gpg.t
165 test-gpg.t
166 test-graft.t
166 test-graft.t
167 test-hg-parseurl.py
167 test-hg-parseurl.py
168 test-hghave.t
168 test-hghave.t
169 test-hgignore.t
169 test-hgignore.t
170 test-hgk.t
170 test-hgk.t
171 test-hgweb-bundle.t
171 test-hgweb-bundle.t
172 test-hgweb-descend-empties.t
172 test-hgweb-descend-empties.t
173 test-hgweb-empty.t
173 test-hgweb-empty.t
174 test-hgweb-removed.t
174 test-hgweb-removed.t
175 test-hgwebdir-paths.py
175 test-hgwebdir-paths.py
176 test-hgwebdirsym.t
176 test-hgwebdirsym.t
177 test-histedit-arguments.t
177 test-histedit-arguments.t
178 test-histedit-base.t
178 test-histedit-base.t
179 test-histedit-bookmark-motion.t
179 test-histedit-bookmark-motion.t
180 test-histedit-commute.t
180 test-histedit-commute.t
181 test-histedit-drop.t
181 test-histedit-drop.t
182 test-histedit-edit.t
182 test-histedit-edit.t
183 test-histedit-fold-non-commute.t
183 test-histedit-fold-non-commute.t
184 test-histedit-fold.t
184 test-histedit-fold.t
185 test-histedit-no-change.t
185 test-histedit-no-change.t
186 test-histedit-non-commute-abort.t
186 test-histedit-non-commute-abort.t
187 test-histedit-non-commute.t
187 test-histedit-non-commute.t
188 test-histedit-obsolete.t
188 test-histedit-obsolete.t
189 test-histedit-outgoing.t
189 test-histedit-outgoing.t
190 test-histedit-templates.t
190 test-histedit-templates.t
191 test-http-branchmap.t
191 test-http-branchmap.t
192 test-http-bundle1.t
192 test-http-bundle1.t
193 test-http-clone-r.t
193 test-http-clone-r.t
194 test-http.t
194 test-http.t
195 test-hybridencode.py
195 test-hybridencode.py
196 test-identify.t
196 test-identify.t
197 test-import-unknown.t
197 test-import-unknown.t
198 test-import.t
198 test-import.t
199 test-imports-checker.t
199 test-imports-checker.t
200 test-incoming-outgoing.t
200 test-incoming-outgoing.t
201 test-inherit-mode.t
201 test-inherit-mode.t
202 test-issue1089.t
202 test-issue1089.t
203 test-issue1102.t
203 test-issue1102.t
204 test-issue1175.t
204 test-issue1175.t
205 test-issue1306.t
205 test-issue1306.t
206 test-issue1438.t
206 test-issue1438.t
207 test-issue1502.t
207 test-issue1502.t
208 test-issue1802.t
208 test-issue1802.t
209 test-issue1877.t
209 test-issue1877.t
210 test-issue1993.t
210 test-issue1993.t
211 test-issue2137.t
211 test-issue2137.t
212 test-issue3084.t
212 test-issue3084.t
213 test-issue4074.t
213 test-issue4074.t
214 test-issue522.t
214 test-issue522.t
215 test-issue586.t
215 test-issue586.t
216 test-issue612.t
216 test-issue612.t
217 test-issue619.t
217 test-issue619.t
218 test-issue660.t
218 test-issue660.t
219 test-issue672.t
219 test-issue672.t
220 test-issue842.t
220 test-issue842.t
221 test-journal-exists.t
221 test-journal-exists.t
222 test-journal-share.t
222 test-journal-share.t
223 test-journal.t
223 test-journal.t
224 test-largefiles-cache.t
224 test-largefiles-cache.t
225 test-largefiles-misc.t
225 test-largefiles-misc.t
226 test-largefiles-small-disk.t
226 test-largefiles-small-disk.t
227 test-largefiles-update.t
227 test-largefiles-update.t
228 test-largefiles.t
228 test-largefiles.t
229 test-lfs-largefiles.t
229 test-lfs-largefiles.t
230 test-lfs-pointer.py
230 test-lfs-pointer.py
231 test-linerange.py
231 test-linerange.py
232 test-locate.t
232 test-locate.t
233 test-lock-badness.t
233 test-lock-badness.t
234 test-log-linerange.t
234 test-log-linerange.t
235 test-log.t
235 test-log.t
236 test-logexchange.t
236 test-logexchange.t
237 test-lrucachedict.py
237 test-lrucachedict.py
238 test-mactext.t
238 test-mactext.t
239 test-mailmap.t
239 test-mailmap.t
240 test-manifest-merging.t
240 test-manifest-merging.t
241 test-manifest.py
241 test-manifest.py
242 test-manifest.t
242 test-manifest.t
243 test-match.py
243 test-match.py
244 test-mdiff.py
244 test-mdiff.py
245 test-merge-changedelete.t
245 test-merge-changedelete.t
246 test-merge-closedheads.t
246 test-merge-closedheads.t
247 test-merge-commit.t
247 test-merge-commit.t
248 test-merge-criss-cross.t
248 test-merge-criss-cross.t
249 test-merge-default.t
249 test-merge-default.t
250 test-merge-force.t
250 test-merge-force.t
251 test-merge-halt.t
251 test-merge-halt.t
252 test-merge-internal-tools-pattern.t
252 test-merge-internal-tools-pattern.t
253 test-merge-local.t
253 test-merge-local.t
254 test-merge-remove.t
254 test-merge-remove.t
255 test-merge-revert.t
255 test-merge-revert.t
256 test-merge-revert2.t
256 test-merge-revert2.t
257 test-merge-subrepos.t
257 test-merge-subrepos.t
258 test-merge-symlinks.t
258 test-merge-symlinks.t
259 test-merge-tools.t
259 test-merge-tools.t
260 test-merge-types.t
260 test-merge-types.t
261 test-merge1.t
261 test-merge1.t
262 test-merge10.t
262 test-merge10.t
263 test-merge2.t
263 test-merge2.t
264 test-merge4.t
264 test-merge4.t
265 test-merge5.t
265 test-merge5.t
266 test-merge6.t
266 test-merge6.t
267 test-merge7.t
267 test-merge7.t
268 test-merge8.t
268 test-merge8.t
269 test-merge9.t
269 test-merge9.t
270 test-minifileset.py
270 test-minifileset.py
271 test-minirst.py
271 test-minirst.py
272 test-mq-git.t
272 test-mq-git.t
273 test-mq-header-date.t
273 test-mq-header-date.t
274 test-mq-header-from.t
274 test-mq-header-from.t
275 test-mq-merge.t
275 test-mq-merge.t
276 test-mq-pull-from-bundle.t
276 test-mq-pull-from-bundle.t
277 test-mq-qclone-http.t
277 test-mq-qclone-http.t
278 test-mq-qdelete.t
278 test-mq-qdelete.t
279 test-mq-qdiff.t
279 test-mq-qdiff.t
280 test-mq-qfold.t
280 test-mq-qfold.t
281 test-mq-qgoto.t
281 test-mq-qgoto.t
282 test-mq-qimport-fail-cleanup.t
282 test-mq-qimport-fail-cleanup.t
283 test-mq-qnew.t
283 test-mq-qnew.t
284 test-mq-qpush-exact.t
284 test-mq-qpush-exact.t
285 test-mq-qqueue.t
285 test-mq-qqueue.t
286 test-mq-qrefresh-interactive.t
286 test-mq-qrefresh-interactive.t
287 test-mq-qrefresh-replace-log-message.t
287 test-mq-qrefresh-replace-log-message.t
288 test-mq-qrefresh.t
288 test-mq-qrefresh.t
289 test-mq-qrename.t
289 test-mq-qrename.t
290 test-mq-qsave.t
290 test-mq-qsave.t
291 test-mq-safety.t
291 test-mq-safety.t
292 test-mq-subrepo.t
292 test-mq-subrepo.t
293 test-mq-symlinks.t
293 test-mq-symlinks.t
294 test-mv-cp-st-diff.t
294 test-mv-cp-st-diff.t
295 test-narrow-archive.t
295 test-narrow-archive.t
296 test-narrow-clone-no-ellipsis.t
296 test-narrow-clone-no-ellipsis.t
297 test-narrow-clone-non-narrow-server.t
297 test-narrow-clone-non-narrow-server.t
298 test-narrow-clone-nonlinear.t
298 test-narrow-clone-nonlinear.t
299 test-narrow-clone.t
299 test-narrow-clone.t
300 test-narrow-commit.t
300 test-narrow-commit.t
301 test-narrow-copies.t
301 test-narrow-copies.t
302 test-narrow-debugcommands.t
302 test-narrow-debugcommands.t
303 test-narrow-debugrebuilddirstate.t
303 test-narrow-debugrebuilddirstate.t
304 test-narrow-exchange-merges.t
304 test-narrow-exchange-merges.t
305 test-narrow-exchange.t
305 test-narrow-exchange.t
306 test-narrow-expanddirstate.t
306 test-narrow-expanddirstate.t
307 test-narrow-merge.t
307 test-narrow-merge.t
308 test-narrow-patch.t
308 test-narrow-patch.t
309 test-narrow-patterns.t
309 test-narrow-patterns.t
310 test-narrow-pull.t
310 test-narrow-pull.t
311 test-narrow-rebase.t
311 test-narrow-rebase.t
312 test-narrow-shallow-merges.t
312 test-narrow-shallow-merges.t
313 test-narrow-shallow.t
313 test-narrow-shallow.t
314 test-narrow-strip.t
314 test-narrow-strip.t
315 test-narrow-update.t
315 test-narrow-update.t
316 test-nested-repo.t
316 test-nested-repo.t
317 test-newbranch.t
317 test-newbranch.t
318 test-obshistory.t
318 test-obshistory.t
319 test-obsmarker-template.t
319 test-obsmarker-template.t
320 test-obsmarkers-effectflag.t
320 test-obsmarkers-effectflag.t
321 test-obsolete-bundle-strip.t
321 test-obsolete-bundle-strip.t
322 test-obsolete-changeset-exchange.t
322 test-obsolete-changeset-exchange.t
323 test-obsolete-checkheads.t
323 test-obsolete-checkheads.t
324 test-obsolete-distributed.t
324 test-obsolete-distributed.t
325 test-obsolete-tag-cache.t
325 test-obsolete-tag-cache.t
326 test-parents.t
326 test-parents.t
327 test-parseindex2.py
327 test-parseindex2.py
328 test-pathconflicts-merge.t
328 test-pathconflicts-merge.t
329 test-pathconflicts-update.t
329 test-pathconflicts-update.t
330 test-pathencode.py
330 test-pathencode.py
331 test-pending.t
331 test-pending.t
332 test-permissions.t
332 test-permissions.t
333 test-phases.t
333 test-phases.t
334 test-pull-branch.t
334 test-pull-branch.t
335 test-pull-http.t
335 test-pull-http.t
336 test-pull-permission.t
336 test-pull-permission.t
337 test-pull-pull-corruption.t
337 test-pull-pull-corruption.t
338 test-pull-r.t
338 test-pull-r.t
339 test-pull-update.t
339 test-pull-update.t
340 test-purge.t
340 test-purge.t
341 test-push-checkheads-partial-C1.t
341 test-push-checkheads-partial-C1.t
342 test-push-checkheads-partial-C2.t
342 test-push-checkheads-partial-C2.t
343 test-push-checkheads-partial-C3.t
343 test-push-checkheads-partial-C3.t
344 test-push-checkheads-partial-C4.t
344 test-push-checkheads-partial-C4.t
345 test-push-checkheads-pruned-B1.t
345 test-push-checkheads-pruned-B1.t
346 test-push-checkheads-pruned-B2.t
346 test-push-checkheads-pruned-B2.t
347 test-push-checkheads-pruned-B3.t
347 test-push-checkheads-pruned-B3.t
348 test-push-checkheads-pruned-B4.t
348 test-push-checkheads-pruned-B4.t
349 test-push-checkheads-pruned-B5.t
349 test-push-checkheads-pruned-B5.t
350 test-push-checkheads-pruned-B6.t
350 test-push-checkheads-pruned-B6.t
351 test-push-checkheads-pruned-B7.t
351 test-push-checkheads-pruned-B7.t
352 test-push-checkheads-pruned-B8.t
352 test-push-checkheads-pruned-B8.t
353 test-push-checkheads-superceed-A1.t
353 test-push-checkheads-superceed-A1.t
354 test-push-checkheads-superceed-A2.t
354 test-push-checkheads-superceed-A2.t
355 test-push-checkheads-superceed-A3.t
355 test-push-checkheads-superceed-A3.t
356 test-push-checkheads-superceed-A4.t
356 test-push-checkheads-superceed-A4.t
357 test-push-checkheads-superceed-A5.t
357 test-push-checkheads-superceed-A5.t
358 test-push-checkheads-superceed-A6.t
358 test-push-checkheads-superceed-A6.t
359 test-push-checkheads-superceed-A7.t
359 test-push-checkheads-superceed-A7.t
360 test-push-checkheads-superceed-A8.t
360 test-push-checkheads-superceed-A8.t
361 test-push-checkheads-unpushed-D1.t
361 test-push-checkheads-unpushed-D1.t
362 test-push-checkheads-unpushed-D2.t
362 test-push-checkheads-unpushed-D2.t
363 test-push-checkheads-unpushed-D3.t
363 test-push-checkheads-unpushed-D3.t
364 test-push-checkheads-unpushed-D4.t
364 test-push-checkheads-unpushed-D4.t
365 test-push-checkheads-unpushed-D5.t
365 test-push-checkheads-unpushed-D5.t
366 test-push-checkheads-unpushed-D6.t
366 test-push-checkheads-unpushed-D6.t
367 test-push-checkheads-unpushed-D7.t
367 test-push-checkheads-unpushed-D7.t
368 test-push-http.t
368 test-push-http.t
369 test-push-warn.t
369 test-push-warn.t
370 test-pushvars.t
370 test-pushvars.t
371 test-rebase-abort.t
371 test-rebase-abort.t
372 test-rebase-base-flag.t
372 test-rebase-base-flag.t
373 test-rebase-bookmarks.t
373 test-rebase-bookmarks.t
374 test-rebase-brute-force.t
374 test-rebase-brute-force.t
375 test-rebase-cache.t
375 test-rebase-cache.t
376 test-rebase-check-restore.t
376 test-rebase-check-restore.t
377 test-rebase-collapse.t
377 test-rebase-collapse.t
378 test-rebase-conflicts.t
378 test-rebase-conflicts.t
379 test-rebase-dest.t
379 test-rebase-dest.t
380 test-rebase-detach.t
380 test-rebase-detach.t
381 test-rebase-emptycommit.t
381 test-rebase-emptycommit.t
382 test-rebase-inmemory.t
382 test-rebase-inmemory.t
383 test-rebase-interruptions.t
383 test-rebase-interruptions.t
384 test-rebase-issue-noparam-single-rev.t
384 test-rebase-issue-noparam-single-rev.t
385 test-rebase-legacy.t
385 test-rebase-legacy.t
386 test-rebase-mq-skip.t
386 test-rebase-mq-skip.t
387 test-rebase-mq.t
387 test-rebase-mq.t
388 test-rebase-named-branches.t
388 test-rebase-named-branches.t
389 test-rebase-newancestor.t
389 test-rebase-newancestor.t
390 test-rebase-obsolete.t
390 test-rebase-obsolete.t
391 test-rebase-parameters.t
391 test-rebase-parameters.t
392 test-rebase-partial.t
392 test-rebase-partial.t
393 test-rebase-pull.t
393 test-rebase-pull.t
394 test-rebase-rename.t
394 test-rebase-rename.t
395 test-rebase-scenario-global.t
395 test-rebase-scenario-global.t
396 test-rebase-templates.t
396 test-rebase-templates.t
397 test-rebase-transaction.t
397 test-rebase-transaction.t
398 test-record.t
398 test-record.t
399 test-relink.t
399 test-relink.t
400 test-remove.t
400 test-remove.t
401 test-rename-after-merge.t
401 test-rename-after-merge.t
402 test-rename-dir-merge.t
402 test-rename-dir-merge.t
403 test-rename-merge1.t
403 test-rename-merge1.t
404 test-rename.t
404 test-rename.t
405 test-repair-strip.t
405 test-repair-strip.t
406 test-repo-compengines.t
406 test-repo-compengines.t
407 test-resolve.t
407 test-resolve.t
408 test-revert-flags.t
408 test-revert-flags.t
409 test-revert-unknown.t
409 test-revert-unknown.t
410 test-revlog-ancestry.py
410 test-revlog-ancestry.py
411 test-revlog-group-emptyiter.t
411 test-revlog-group-emptyiter.t
412 test-revlog-mmapindex.t
412 test-revlog-mmapindex.t
413 test-revlog-packentry.t
413 test-revlog-packentry.t
414 test-revset-dirstate-parents.t
414 test-revset-dirstate-parents.t
415 test-revset-legacy-lookup.t
415 test-revset-legacy-lookup.t
416 test-revset-outgoing.t
416 test-revset-outgoing.t
417 test-rollback.t
417 test-rollback.t
418 test-run-tests.py
418 test-run-tests.py
419 test-run-tests.t
419 test-run-tests.t
420 test-schemes.t
420 test-schemes.t
421 test-serve.t
421 test-serve.t
422 test-setdiscovery.t
422 test-setdiscovery.t
423 test-share.t
423 test-share.t
424 test-shelve.t
424 test-shelve.t
425 test-show-stack.t
425 test-show-stack.t
426 test-show-work.t
426 test-show-work.t
427 test-show.t
427 test-show.t
428 test-simple-update.t
428 test-simple-update.t
429 test-simplekeyvaluefile.py
429 test-simplemerge.py
430 test-simplemerge.py
430 test-single-head.t
431 test-single-head.t
431 test-sparse-clear.t
432 test-sparse-clear.t
432 test-sparse-import.t
433 test-sparse-import.t
433 test-sparse-merges.t
434 test-sparse-merges.t
434 test-sparse-profiles.t
435 test-sparse-profiles.t
435 test-sparse-requirement.t
436 test-sparse-requirement.t
436 test-sparse-verbose-json.t
437 test-sparse-verbose-json.t
437 test-ssh-clone-r.t
438 test-ssh-clone-r.t
438 test-ssh-proto.t
439 test-ssh-proto.t
439 test-sshserver.py
440 test-sshserver.py
440 test-stack.t
441 test-stack.t
441 test-status-inprocess.py
442 test-status-inprocess.py
442 test-status-rev.t
443 test-status-rev.t
443 test-status-terse.t
444 test-status-terse.t
444 test-strip-cross.t
445 test-strip-cross.t
445 test-strip.t
446 test-strip.t
446 test-subrepo-deep-nested-change.t
447 test-subrepo-deep-nested-change.t
447 test-subrepo-missing.t
448 test-subrepo-missing.t
448 test-subrepo-recursion.t
449 test-subrepo-recursion.t
449 test-subrepo-relative-path.t
450 test-subrepo-relative-path.t
450 test-subrepo.t
451 test-subrepo.t
451 test-symlink-os-yes-fs-no.py
452 test-symlink-os-yes-fs-no.py
452 test-symlinks.t
453 test-symlinks.t
453 test-tag.t
454 test-tag.t
454 test-tags.t
455 test-tags.t
455 test-template-engine.t
456 test-template-engine.t
456 test-treemanifest.t
457 test-treemanifest.t
457 test-ui-color.py
458 test-ui-color.py
458 test-ui-config.py
459 test-ui-config.py
459 test-ui-verbosity.py
460 test-ui-verbosity.py
460 test-unamend.t
461 test-unamend.t
461 test-uncommit.t
462 test-uncommit.t
462 test-unified-test.t
463 test-unified-test.t
463 test-unrelated-pull.t
464 test-unrelated-pull.t
464 test-up-local-change.t
465 test-up-local-change.t
465 test-update-branches.t
466 test-update-branches.t
466 test-update-dest.t
467 test-update-dest.t
467 test-update-issue1456.t
468 test-update-issue1456.t
468 test-update-names.t
469 test-update-names.t
469 test-update-reverse.t
470 test-update-reverse.t
470 test-upgrade-repo.t
471 test-upgrade-repo.t
471 test-url-download.t
472 test-url-download.t
472 test-url-rev.t
473 test-url-rev.t
473 test-url.py
474 test-url.py
474 test-username-newline.t
475 test-username-newline.t
475 test-verify.t
476 test-verify.t
476 test-walkrepo.py
477 test-walkrepo.py
477 test-websub.t
478 test-websub.t
478 test-win32text.t
479 test-win32text.t
479 test-wireproto-clientreactor.py
480 test-wireproto-clientreactor.py
480 test-wireproto-framing.py
481 test-wireproto-framing.py
481 test-wireproto-serverreactor.py
482 test-wireproto-serverreactor.py
482 test-wireproto.py
483 test-wireproto.py
483 test-wsgirequest.py
484 test-wsgirequest.py
484 test-xdg.t
485 test-xdg.t
@@ -1,90 +1,90 b''
1 from __future__ import absolute_import
1 from __future__ import absolute_import
2
2
3 import unittest
3 import unittest
4 import silenttestrunner
4 import silenttestrunner
5
5
6 from mercurial import (
6 from mercurial import (
7 error,
7 error,
8 scmutil,
8 scmutil,
9 )
9 )
10
10
11 class mockfile(object):
11 class mockfile(object):
12 def __init__(self, name, fs):
12 def __init__(self, name, fs):
13 self.name = name
13 self.name = name
14 self.fs = fs
14 self.fs = fs
15
15
16 def __enter__(self):
16 def __enter__(self):
17 return self
17 return self
18
18
19 def __exit__(self, *args, **kwargs):
19 def __exit__(self, *args, **kwargs):
20 pass
20 pass
21
21
22 def write(self, text):
22 def write(self, text):
23 self.fs.contents[self.name] = text
23 self.fs.contents[self.name] = text
24
24
25 def read(self):
25 def read(self):
26 return self.fs.contents[self.name]
26 return self.fs.contents[self.name]
27
27
28 class mockvfs(object):
28 class mockvfs(object):
29 def __init__(self):
29 def __init__(self):
30 self.contents = {}
30 self.contents = {}
31
31
32 def read(self, path):
32 def read(self, path):
33 return mockfile(path, self).read()
33 return mockfile(path, self).read()
34
34
35 def readlines(self, path):
35 def readlines(self, path):
36 # lines need to contain the trailing '\n' to mock the real readlines
36 # lines need to contain the trailing '\n' to mock the real readlines
37 return [l for l in mockfile(path, self).read().splitlines(True)]
37 return [l for l in mockfile(path, self).read().splitlines(True)]
38
38
39 def __call__(self, path, mode, atomictemp):
39 def __call__(self, path, mode, atomictemp):
40 return mockfile(path, self)
40 return mockfile(path, self)
41
41
42 class testsimplekeyvaluefile(unittest.TestCase):
42 class testsimplekeyvaluefile(unittest.TestCase):
43 def setUp(self):
43 def setUp(self):
44 self.vfs = mockvfs()
44 self.vfs = mockvfs()
45
45
46 def testbasicwritingiandreading(self):
46 def testbasicwritingiandreading(self):
47 dw = {'key1': 'value1', 'Key2': 'value2'}
47 dw = {b'key1': b'value1', b'Key2': b'value2'}
48 scmutil.simplekeyvaluefile(self.vfs, 'kvfile').write(dw)
48 scmutil.simplekeyvaluefile(self.vfs, b'kvfile').write(dw)
49 self.assertEqual(sorted(self.vfs.read('kvfile').split('\n')),
49 self.assertEqual(sorted(self.vfs.read(b'kvfile').split(b'\n')),
50 ['', 'Key2=value2', 'key1=value1'])
50 [b'', b'Key2=value2', b'key1=value1'])
51 dr = scmutil.simplekeyvaluefile(self.vfs, 'kvfile').read()
51 dr = scmutil.simplekeyvaluefile(self.vfs, b'kvfile').read()
52 self.assertEqual(dr, dw)
52 self.assertEqual(dr, dw)
53
53
54 if not getattr(unittest.TestCase, 'assertRaisesRegex', False):
54 if not getattr(unittest.TestCase, 'assertRaisesRegex', False):
55 # Python 3.7 deprecates the regex*p* version, but 2.7 lacks
55 # Python 3.7 deprecates the regex*p* version, but 2.7 lacks
56 # the regex version.
56 # the regex version.
57 assertRaisesRegex = (# camelcase-required
57 assertRaisesRegex = (# camelcase-required
58 unittest.TestCase.assertRaisesRegexp)
58 unittest.TestCase.assertRaisesRegexp)
59
59
60 def testinvalidkeys(self):
60 def testinvalidkeys(self):
61 d = {'0key1': 'value1', 'Key2': 'value2'}
61 d = {b'0key1': b'value1', b'Key2': b'value2'}
62 with self.assertRaisesRegex(error.ProgrammingError,
62 with self.assertRaisesRegex(error.ProgrammingError,
63 'keys must start with a letter.*'):
63 'keys must start with a letter.*'):
64 scmutil.simplekeyvaluefile(self.vfs, 'kvfile').write(d)
64 scmutil.simplekeyvaluefile(self.vfs, b'kvfile').write(d)
65
65
66 d = {'key1@': 'value1', 'Key2': 'value2'}
66 d = {b'key1@': b'value1', b'Key2': b'value2'}
67 with self.assertRaisesRegex(error.ProgrammingError, 'invalid key.*'):
67 with self.assertRaisesRegex(error.ProgrammingError, 'invalid key.*'):
68 scmutil.simplekeyvaluefile(self.vfs, 'kvfile').write(d)
68 scmutil.simplekeyvaluefile(self.vfs, b'kvfile').write(d)
69
69
70 def testinvalidvalues(self):
70 def testinvalidvalues(self):
71 d = {'key1': 'value1', 'Key2': 'value2\n'}
71 d = {b'key1': b'value1', b'Key2': b'value2\n'}
72 with self.assertRaisesRegex(error.ProgrammingError, 'invalid val.*'):
72 with self.assertRaisesRegex(error.ProgrammingError, 'invalid val.*'):
73 scmutil.simplekeyvaluefile(self.vfs, 'kvfile').write(d)
73 scmutil.simplekeyvaluefile(self.vfs, b'kvfile').write(d)
74
74
75 def testcorruptedfile(self):
75 def testcorruptedfile(self):
76 self.vfs.contents['badfile'] = 'ababagalamaga\n'
76 self.vfs.contents[b'badfile'] = b'ababagalamaga\n'
77 with self.assertRaisesRegex(error.CorruptedState,
77 with self.assertRaisesRegex(error.CorruptedState,
78 'dictionary.*element.*'):
78 'dictionary.*element.*'):
79 scmutil.simplekeyvaluefile(self.vfs, 'badfile').read()
79 scmutil.simplekeyvaluefile(self.vfs, b'badfile').read()
80
80
81 def testfirstline(self):
81 def testfirstline(self):
82 dw = {'key1': 'value1'}
82 dw = {b'key1': b'value1'}
83 scmutil.simplekeyvaluefile(self.vfs, 'fl').write(dw, firstline='1.0')
83 scmutil.simplekeyvaluefile(self.vfs, b'fl').write(dw, firstline=b'1.0')
84 self.assertEqual(self.vfs.read('fl'), '1.0\nkey1=value1\n')
84 self.assertEqual(self.vfs.read(b'fl'), b'1.0\nkey1=value1\n')
85 dr = scmutil.simplekeyvaluefile(self.vfs, 'fl')\
85 dr = scmutil.simplekeyvaluefile(self.vfs, b'fl')\
86 .read(firstlinenonkeyval=True)
86 .read(firstlinenonkeyval=True)
87 self.assertEqual(dr, {'__firstline': '1.0', 'key1': 'value1'})
87 self.assertEqual(dr, {b'__firstline': b'1.0', b'key1': b'value1'})
88
88
89 if __name__ == "__main__":
89 if __name__ == "__main__":
90 silenttestrunner.main(__name__)
90 silenttestrunner.main(__name__)
General Comments 0
You need to be logged in to leave comments. Login now