##// END OF EJS Templates
py3: add __pycache__ to .hgignore...
Pulkit Goyal -
r40645:ee9981bc default
parent child Browse files
Show More
@@ -1,646 +1,647
1 1 test-abort-checkin.t
2 2 test-absorb-filefixupstate.py
3 3 test-absorb-phase.t
4 4 test-absorb-rename.t
5 5 test-absorb-strip.t
6 6 test-absorb.t
7 7 test-add.t
8 8 test-addremove-similar.t
9 9 test-addremove.t
10 10 test-alias.t
11 11 test-amend-subrepo.t
12 12 test-amend.t
13 13 test-ancestor.py
14 14 test-annotate.py
15 15 test-annotate.t
16 16 test-archive-symlinks.t
17 17 test-archive.t
18 18 test-atomictempfile.py
19 19 test-audit-path.t
20 20 test-audit-subrepo.t
21 21 test-automv.t
22 22 test-backout.t
23 23 test-backwards-remove.t
24 24 test-bad-extension.t
25 25 test-bad-pull.t
26 26 test-basic.t
27 27 test-bdiff.py
28 28 test-bheads.t
29 29 test-bisect.t
30 30 test-bisect2.t
31 31 test-bisect3.t
32 32 test-blackbox.t
33 33 test-bookmarks-current.t
34 34 test-bookmarks-merge.t
35 35 test-bookmarks-pushpull.t
36 36 test-bookmarks-rebase.t
37 37 test-bookmarks-strip.t
38 38 test-bookmarks.t
39 39 test-branch-change.t
40 40 test-branch-option.t
41 41 test-branch-tag-confict.t
42 42 test-branches.t
43 43 test-bundle-phases.t
44 44 test-bundle-r.t
45 45 test-bundle-type.t
46 46 test-bundle-vs-outgoing.t
47 47 test-bundle.t
48 48 test-bundle2-exchange.t
49 49 test-bundle2-format.t
50 50 test-bundle2-multiple-changegroups.t
51 51 test-bundle2-pushback.t
52 52 test-bundle2-remote-changegroup.t
53 53 test-cache-abuse.t
54 54 test-cappedreader.py
55 55 test-casecollision.t
56 56 test-cat.t
57 57 test-cbor.py
58 58 test-censor.t
59 59 test-changelog-exec.t
60 60 test-check-code.t
61 61 test-check-commit.t
62 62 test-check-config.py
63 63 test-check-config.t
64 64 test-check-execute.t
65 65 test-check-interfaces.py
66 66 test-check-module-imports.t
67 67 test-check-py3-compat.t
68 68 test-check-pyflakes.t
69 69 test-check-pylint.t
70 70 test-check-shbang.t
71 71 test-children.t
72 72 test-churn.t
73 73 test-clone-cgi.t
74 74 test-clone-pull-corruption.t
75 75 test-clone-r.t
76 76 test-clone-uncompressed.t
77 77 test-clone-update-order.t
78 78 test-clone.t
79 79 test-clonebundles.t
80 80 test-close-head.t
81 81 test-commandserver.t
82 82 test-commit-amend.t
83 83 test-commit-interactive.t
84 84 test-commit-multiple.t
85 85 test-commit-unresolved.t
86 86 test-commit.t
87 87 test-committer.t
88 88 test-completion.t
89 89 test-config-env.py
90 90 test-config.t
91 91 test-conflict.t
92 92 test-confused-revert.t
93 93 test-context-metadata.t
94 94 test-context.py
95 95 test-contrib-check-code.t
96 96 test-contrib-check-commit.t
97 97 test-contrib-dumprevlog.t
98 98 test-contrib-perf.t
99 99 test-contrib-relnotes.t
100 100 test-contrib-testparseutil.t
101 101 test-contrib.t
102 102 test-convert-authormap.t
103 103 test-convert-clonebranches.t
104 104 test-convert-cvs-branch.t
105 105 test-convert-cvs-detectmerge.t
106 106 test-convert-cvs-synthetic.t
107 107 test-convert-cvs.t
108 108 test-convert-cvsnt-mergepoints.t
109 109 test-convert-datesort.t
110 110 test-convert-filemap.t
111 111 test-convert-hg-sink.t
112 112 test-convert-hg-source.t
113 113 test-convert-hg-startrev.t
114 114 test-convert-splicemap.t
115 115 test-convert-tagsbranch-topology.t
116 116 test-copy-move-merge.t
117 117 test-copy.t
118 118 test-copytrace-heuristics.t
119 test-custom-filters.t
119 120 test-debugbuilddag.t
120 121 test-debugbundle.t
121 122 test-debugcommands.t
122 123 test-debugextensions.t
123 124 test-debugindexdot.t
124 125 test-debugrename.t
125 126 test-default-push.t
126 127 test-diff-antipatience.t
127 128 test-diff-binary-file.t
128 129 test-diff-change.t
129 130 test-diff-color.t
130 131 test-diff-copy-depth.t
131 132 test-diff-hashes.t
132 133 test-diff-ignore-whitespace.t
133 134 test-diff-indent-heuristic.t
134 135 test-diff-issue2761.t
135 136 test-diff-newlines.t
136 137 test-diff-reverse.t
137 138 test-diff-subdir.t
138 139 test-diff-unified.t
139 140 test-diff-upgrade.t
140 141 test-diffdir.t
141 142 test-diffstat.t
142 143 test-directaccess.t
143 144 test-dirstate-backup.t
144 145 test-dirstate-nonnormalset.t
145 146 test-dirstate-race.t
146 147 test-dirstate.t
147 148 test-dispatch.py
148 149 test-doctest.py
149 150 test-double-merge.t
150 151 test-drawdag.t
151 152 test-duplicateoptions.py
152 153 test-editor-filename.t
153 154 test-empty-dir.t
154 155 test-empty-file.t
155 156 test-empty-group.t
156 157 test-empty.t
157 158 test-encode.t
158 159 test-encoding-func.py
159 160 test-encoding-textwrap.t
160 161 test-encoding.t
161 162 test-eol-add.t
162 163 test-eol-clone.t
163 164 test-eol-hook.t
164 165 test-eol-patch.t
165 166 test-eol-tag.t
166 167 test-eol-update.t
167 168 test-eol.t
168 169 test-eolfilename.t
169 170 test-excessive-merge.t
170 171 test-exchange-obsmarkers-case-A1.t
171 172 test-exchange-obsmarkers-case-A2.t
172 173 test-exchange-obsmarkers-case-A3.t
173 174 test-exchange-obsmarkers-case-A4.t
174 175 test-exchange-obsmarkers-case-A5.t
175 176 test-exchange-obsmarkers-case-A6.t
176 177 test-exchange-obsmarkers-case-A7.t
177 178 test-exchange-obsmarkers-case-B1.t
178 179 test-exchange-obsmarkers-case-B2.t
179 180 test-exchange-obsmarkers-case-B3.t
180 181 test-exchange-obsmarkers-case-B4.t
181 182 test-exchange-obsmarkers-case-B5.t
182 183 test-exchange-obsmarkers-case-B6.t
183 184 test-exchange-obsmarkers-case-B7.t
184 185 test-exchange-obsmarkers-case-C1.t
185 186 test-exchange-obsmarkers-case-C2.t
186 187 test-exchange-obsmarkers-case-C3.t
187 188 test-exchange-obsmarkers-case-C4.t
188 189 test-exchange-obsmarkers-case-D1.t
189 190 test-exchange-obsmarkers-case-D2.t
190 191 test-exchange-obsmarkers-case-D3.t
191 192 test-exchange-obsmarkers-case-D4.t
192 193 test-execute-bit.t
193 194 test-export.t
194 195 test-extdata.t
195 196 test-extdiff.t
196 197 test-extension-timing.t
197 198 test-extensions-afterloaded.t
198 199 test-extensions-wrapfunction.py
199 200 test-extra-filelog-entry.t
200 201 test-fetch.t
201 202 test-filebranch.t
202 203 test-filecache.py
203 204 test-filelog.py
204 205 test-fileset-generated.t
205 206 test-fileset.t
206 207 test-fix-topology.t
207 208 test-fix.t
208 209 test-flags.t
209 210 test-fncache.t
210 211 test-generaldelta.t
211 212 test-getbundle.t
212 213 test-git-export.t
213 214 test-globalopts.t
214 215 test-glog-beautifygraph.t
215 216 test-glog-topological.t
216 217 test-glog.t
217 218 test-gpg.t
218 219 test-graft.t
219 220 test-grep.t
220 221 test-hardlinks.t
221 222 test-help-hide.t
222 223 test-help.t
223 224 test-hg-parseurl.py
224 225 test-hghave.t
225 226 test-hgignore.t
226 227 test-hgk.t
227 228 test-hgrc.t
228 229 test-hgweb-annotate-whitespace.t
229 230 test-hgweb-bundle.t
230 231 test-hgweb-csp.t
231 232 test-hgweb-descend-empties.t
232 233 test-hgweb-diffs.t
233 234 test-hgweb-empty.t
234 235 test-hgweb-filelog.t
235 236 test-hgweb-non-interactive.t
236 237 test-hgweb-raw.t
237 238 test-hgweb-removed.t
238 239 test-hgweb.t
239 240 test-hgwebdir-paths.py
240 241 test-hgwebdirsym.t
241 242 test-histedit-arguments.t
242 243 test-histedit-base.t
243 244 test-histedit-bookmark-motion.t
244 245 test-histedit-commute.t
245 246 test-histedit-drop.t
246 247 test-histedit-edit.t
247 248 test-histedit-fold-non-commute.t
248 249 test-histedit-fold.t
249 250 test-histedit-no-backup.t
250 251 test-histedit-no-change.t
251 252 test-histedit-non-commute-abort.t
252 253 test-histedit-non-commute.t
253 254 test-histedit-obsolete.t
254 255 test-histedit-outgoing.t
255 256 test-histedit-templates.t
256 257 test-http-branchmap.t
257 258 test-http-bundle1.t
258 259 test-http-clone-r.t
259 260 test-http-permissions.t
260 261 test-http.t
261 262 test-hybridencode.py
262 263 test-i18n.t
263 264 test-identify.t
264 265 test-impexp-branch.t
265 266 test-import-bypass.t
266 267 test-import-context.t
267 268 test-import-eol.t
268 269 test-import-merge.t
269 270 test-import-unknown.t
270 271 test-import.t
271 272 test-imports-checker.t
272 273 test-incoming-outgoing.t
273 274 test-infinitepush-bundlestore.t
274 275 test-infinitepush-ci.t
275 276 test-infinitepush.t
276 277 test-inherit-mode.t
277 278 test-init.t
278 279 test-issue1089.t
279 280 test-issue1102.t
280 281 test-issue1175.t
281 282 test-issue1306.t
282 283 test-issue1438.t
283 284 test-issue1502.t
284 285 test-issue1802.t
285 286 test-issue1877.t
286 287 test-issue1993.t
287 288 test-issue2137.t
288 289 test-issue3084.t
289 290 test-issue4074.t
290 291 test-issue522.t
291 292 test-issue586.t
292 293 test-issue5979.t
293 294 test-issue612.t
294 295 test-issue619.t
295 296 test-issue660.t
296 297 test-issue672.t
297 298 test-issue842.t
298 299 test-journal-exists.t
299 300 test-journal-share.t
300 301 test-journal.t
301 302 test-keyword.t
302 303 test-known.t
303 304 test-largefiles-cache.t
304 305 test-largefiles-misc.t
305 306 test-largefiles-small-disk.t
306 307 test-largefiles-update.t
307 308 test-largefiles.t
308 309 test-lfs-largefiles.t
309 310 test-lfs-pointer.py
310 311 test-linelog.py
311 312 test-linerange.py
312 313 test-locate.t
313 314 test-lock-badness.t
314 315 test-log-exthook.t
315 316 test-log-linerange.t
316 317 test-log.t
317 318 test-logexchange.t
318 319 test-lrucachedict.py
319 320 test-mactext.t
320 321 test-mailmap.t
321 322 test-manifest-merging.t
322 323 test-manifest.py
323 324 test-manifest.t
324 325 test-match.py
325 326 test-mdiff.py
326 327 test-merge-changedelete.t
327 328 test-merge-closedheads.t
328 329 test-merge-commit.t
329 330 test-merge-criss-cross.t
330 331 test-merge-default.t
331 332 test-merge-force.t
332 333 test-merge-halt.t
333 334 test-merge-internal-tools-pattern.t
334 335 test-merge-local.t
335 336 test-merge-no-file-change.t
336 337 test-merge-remove.t
337 338 test-merge-revert.t
338 339 test-merge-revert2.t
339 340 test-merge-subrepos.t
340 341 test-merge-symlinks.t
341 342 test-merge-tools.t
342 343 test-merge-types.t
343 344 test-merge1.t
344 345 test-merge10.t
345 346 test-merge2.t
346 347 test-merge4.t
347 348 test-merge5.t
348 349 test-merge6.t
349 350 test-merge7.t
350 351 test-merge8.t
351 352 test-merge9.t
352 353 test-minifileset.py
353 354 test-minirst.py
354 355 test-mq-git.t
355 356 test-mq-guards.t
356 357 test-mq-header-date.t
357 358 test-mq-header-from.t
358 359 test-mq-merge.t
359 360 test-mq-pull-from-bundle.t
360 361 test-mq-qclone-http.t
361 362 test-mq-qdelete.t
362 363 test-mq-qdiff.t
363 364 test-mq-qfold.t
364 365 test-mq-qgoto.t
365 366 test-mq-qimport-fail-cleanup.t
366 367 test-mq-qnew.t
367 368 test-mq-qpush-exact.t
368 369 test-mq-qpush-fail.t
369 370 test-mq-qqueue.t
370 371 test-mq-qrefresh-interactive.t
371 372 test-mq-qrefresh-replace-log-message.t
372 373 test-mq-qrefresh.t
373 374 test-mq-qrename.t
374 375 test-mq-qsave.t
375 376 test-mq-safety.t
376 377 test-mq-subrepo.t
377 378 test-mq-symlinks.t
378 379 test-mq.t
379 380 test-mv-cp-st-diff.t
380 381 test-narrow-acl.t
381 382 test-narrow-archive.t
382 383 test-narrow-clone-no-ellipsis.t
383 384 test-narrow-clone-non-narrow-server.t
384 385 test-narrow-clone-nonlinear.t
385 386 test-narrow-clone-stream.t
386 387 test-narrow-clone.t
387 388 test-narrow-commit.t
388 389 test-narrow-copies.t
389 390 test-narrow-debugcommands.t
390 391 test-narrow-debugrebuilddirstate.t
391 392 test-narrow-exchange-merges.t
392 393 test-narrow-exchange.t
393 394 test-narrow-expanddirstate.t
394 395 test-narrow-merge.t
395 396 test-narrow-patch.t
396 397 test-narrow-patterns.t
397 398 test-narrow-pull.t
398 399 test-narrow-rebase.t
399 400 test-narrow-shallow-merges.t
400 401 test-narrow-shallow.t
401 402 test-narrow-strip.t
402 403 test-narrow-trackedcmd.t
403 404 test-narrow-update.t
404 405 test-narrow-widen-no-ellipsis.t
405 406 test-narrow-widen.t
406 407 test-narrow.t
407 408 test-nested-repo.t
408 409 test-newbranch.t
409 410 test-newercgi.t
410 411 test-nointerrupt.t
411 412 test-obshistory.t
412 413 test-obsmarker-template.t
413 414 test-obsmarkers-effectflag.t
414 415 test-obsolete-bounds-checking.t
415 416 test-obsolete-bundle-strip.t
416 417 test-obsolete-changeset-exchange.t
417 418 test-obsolete-checkheads.t
418 419 test-obsolete-distributed.t
419 420 test-obsolete-divergent.t
420 421 test-obsolete-tag-cache.t
421 422 test-obsolete.t
422 423 test-origbackup-conflict.t
423 424 test-pager-legacy.t
424 425 test-pager.t
425 426 test-parents.t
426 427 test-parse-date.t
427 428 test-parseindex2.py
428 429 test-patch-offset.t
429 430 test-patch.t
430 431 test-patchbomb-bookmark.t
431 432 test-patchbomb-tls.t
432 433 test-patchbomb.t
433 434 test-pathconflicts-basic.t
434 435 test-pathconflicts-merge.t
435 436 test-pathconflicts-update.t
436 437 test-pathencode.py
437 438 test-pending.t
438 439 test-permissions.t
439 440 test-phases-exchange.t
440 441 test-phases.t
441 442 test-profile.t
442 443 test-progress.t
443 444 test-propertycache.py
444 445 test-pull-branch.t
445 446 test-pull-http.t
446 447 test-pull-permission.t
447 448 test-pull-pull-corruption.t
448 449 test-pull-r.t
449 450 test-pull-update.t
450 451 test-pull.t
451 452 test-purge.t
452 453 test-push-cgi.t
453 454 test-push-checkheads-partial-C1.t
454 455 test-push-checkheads-partial-C2.t
455 456 test-push-checkheads-partial-C3.t
456 457 test-push-checkheads-partial-C4.t
457 458 test-push-checkheads-pruned-B1.t
458 459 test-push-checkheads-pruned-B2.t
459 460 test-push-checkheads-pruned-B3.t
460 461 test-push-checkheads-pruned-B4.t
461 462 test-push-checkheads-pruned-B5.t
462 463 test-push-checkheads-pruned-B6.t
463 464 test-push-checkheads-pruned-B7.t
464 465 test-push-checkheads-pruned-B8.t
465 466 test-push-checkheads-superceed-A1.t
466 467 test-push-checkheads-superceed-A2.t
467 468 test-push-checkheads-superceed-A3.t
468 469 test-push-checkheads-superceed-A4.t
469 470 test-push-checkheads-superceed-A5.t
470 471 test-push-checkheads-superceed-A6.t
471 472 test-push-checkheads-superceed-A7.t
472 473 test-push-checkheads-superceed-A8.t
473 474 test-push-checkheads-unpushed-D1.t
474 475 test-push-checkheads-unpushed-D2.t
475 476 test-push-checkheads-unpushed-D3.t
476 477 test-push-checkheads-unpushed-D4.t
477 478 test-push-checkheads-unpushed-D5.t
478 479 test-push-checkheads-unpushed-D6.t
479 480 test-push-checkheads-unpushed-D7.t
480 481 test-push-http.t
481 482 test-push-warn.t
482 483 test-push.t
483 484 test-pushvars.t
484 485 test-qrecord.t
485 486 test-rebase-abort.t
486 487 test-rebase-backup.t
487 488 test-rebase-base-flag.t
488 489 test-rebase-bookmarks.t
489 490 test-rebase-brute-force.t
490 491 test-rebase-cache.t
491 492 test-rebase-check-restore.t
492 493 test-rebase-collapse.t
493 494 test-rebase-conflicts.t
494 495 test-rebase-dest.t
495 496 test-rebase-detach.t
496 497 test-rebase-emptycommit.t
497 498 test-rebase-inmemory.t
498 499 test-rebase-interruptions.t
499 500 test-rebase-issue-noparam-single-rev.t
500 501 test-rebase-legacy.t
501 502 test-rebase-mq-skip.t
502 503 test-rebase-mq.t
503 504 test-rebase-named-branches.t
504 505 test-rebase-newancestor.t
505 506 test-rebase-obsolete.t
506 507 test-rebase-parameters.t
507 508 test-rebase-partial.t
508 509 test-rebase-pull.t
509 510 test-rebase-rename.t
510 511 test-rebase-scenario-global.t
511 512 test-rebase-templates.t
512 513 test-rebase-transaction.t
513 514 test-rebuildstate.t
514 515 test-record.t
515 516 test-releasenotes-formatting.t
516 517 test-releasenotes-merging.t
517 518 test-releasenotes-parsing.t
518 519 test-relink.t
519 520 test-remove.t
520 521 test-removeemptydirs.t
521 522 test-rename-after-merge.t
522 523 test-rename-dir-merge.t
523 524 test-rename-merge1.t
524 525 test-rename-merge2.t
525 526 test-rename.t
526 527 test-repair-strip.t
527 528 test-repo-compengines.t
528 529 test-requires.t
529 530 test-resolve.t
530 531 test-revert-flags.t
531 532 test-revert-interactive.t
532 533 test-revert-unknown.t
533 534 test-revert.t
534 535 test-revisions.t
535 536 test-revlog-ancestry.py
536 537 test-revlog-group-emptyiter.t
537 538 test-revlog-mmapindex.t
538 539 test-revlog-packentry.t
539 540 test-revlog-raw.py
540 541 test-revlog-v2.t
541 542 test-revlog.t
542 543 test-revset-dirstate-parents.t
543 544 test-revset-legacy-lookup.t
544 545 test-revset-outgoing.t
545 546 test-rollback.t
546 547 test-run-tests.py
547 548 test-run-tests.t
548 549 test-schemes.t
549 550 test-serve.t
550 551 test-setdiscovery.t
551 552 test-share.t
552 553 test-shelve.t
553 554 test-show-stack.t
554 555 test-show-work.t
555 556 test-show.t
556 557 test-simple-update.t
557 558 test-simplekeyvaluefile.py
558 559 test-simplemerge.py
559 560 test-single-head.t
560 561 test-sparse-clear.t
561 562 test-sparse-clone.t
562 563 test-sparse-import.t
563 564 test-sparse-merges.t
564 565 test-sparse-profiles.t
565 566 test-sparse-requirement.t
566 567 test-sparse-verbose-json.t
567 568 test-sparse.t
568 569 test-split.t
569 570 test-ssh-bundle1.t
570 571 test-ssh-clone-r.t
571 572 test-ssh-proto-unbundle.t
572 573 test-ssh-proto.t
573 574 test-ssh-repoerror.t
574 575 test-ssh.t
575 576 test-sshserver.py
576 577 test-stack.t
577 578 test-status-color.t
578 579 test-status-inprocess.py
579 580 test-status-rev.t
580 581 test-status-terse.t
581 582 test-status.t
582 583 test-storage.py
583 584 test-stream-bundle-v2.t
584 585 test-strict.t
585 586 test-strip-cross.t
586 587 test-strip.t
587 588 test-subrepo-deep-nested-change.t
588 589 test-subrepo-missing.t
589 590 test-subrepo-paths.t
590 591 test-subrepo-recursion.t
591 592 test-subrepo-relative-path.t
592 593 test-subrepo.t
593 594 test-symlink-os-yes-fs-no.py
594 595 test-symlink-placeholder.t
595 596 test-symlinks.t
596 597 test-tag.t
597 598 test-tags.t
598 599 test-template-basic.t
599 600 test-template-functions.t
600 601 test-template-keywords.t
601 602 test-template-map.t
602 603 test-tools.t
603 604 test-transplant.t
604 605 test-treemanifest.t
605 606 test-ui-color.py
606 607 test-ui-config.py
607 608 test-ui-verbosity.py
608 609 test-unamend.t
609 610 test-unbundlehash.t
610 611 test-uncommit.t
611 612 test-unified-test.t
612 613 test-unionrepo.t
613 614 test-unrelated-pull.t
614 615 test-up-local-change.t
615 616 test-update-branches.t
616 617 test-update-dest.t
617 618 test-update-issue1456.t
618 619 test-update-names.t
619 620 test-update-reverse.t
620 621 test-upgrade-repo.t
621 622 test-url-download.t
622 623 test-url-rev.t
623 624 test-url.py
624 625 test-username-newline.t
625 626 test-util.py
626 627 test-verify.t
627 628 test-walk.t
628 629 test-walkrepo.py
629 630 test-websub.t
630 631 test-win32text.t
631 632 test-wireproto-clientreactor.py
632 633 test-wireproto-command-branchmap.t
633 634 test-wireproto-command-changesetdata.t
634 635 test-wireproto-command-filedata.t
635 636 test-wireproto-command-filesdata.t
636 637 test-wireproto-command-heads.t
637 638 test-wireproto-command-listkeys.t
638 639 test-wireproto-command-lookup.t
639 640 test-wireproto-command-manifestdata.t
640 641 test-wireproto-command-pushkey.t
641 642 test-wireproto-command-rawstorefiledata.t
642 643 test-wireproto-framing.py
643 644 test-wireproto-serverreactor.py
644 645 test-wireproto.py
645 646 test-wsgirequest.py
646 647 test-xdg.t
@@ -1,66 +1,67
1 1 $ hg init
2 2
3 3 $ cat > .hg/hgrc <<EOF
4 4 > [extensions]
5 5 > prefixfilter = prefix.py
6 6 > [encode]
7 7 > *.txt = stripprefix: Copyright 2046, The Masters
8 8 > [decode]
9 9 > *.txt = insertprefix: Copyright 2046, The Masters
10 10 > EOF
11 11
12 12 $ cat > prefix.py <<EOF
13 13 > from mercurial import error
14 14 > def stripprefix(s, cmd, filename, **kwargs):
15 15 > header = b'%s\n' % cmd
16 16 > if s[:len(header)] != header:
17 17 > raise error.Abort(b'missing header "%s" in %s' % (cmd, filename))
18 18 > return s[len(header):]
19 19 > def insertprefix(s, cmd):
20 20 > return b'%s\n%s' % (cmd, s)
21 21 > def reposetup(ui, repo):
22 22 > repo.adddatafilter(b'stripprefix:', stripprefix)
23 23 > repo.adddatafilter(b'insertprefix:', insertprefix)
24 24 > EOF
25 25
26 26 $ cat > .hgignore <<EOF
27 27 > .hgignore
28 28 > prefix.py
29 29 > prefix.pyc
30 > __pycache__/
30 31 > EOF
31 32
32 33 $ cat > stuff.txt <<EOF
33 34 > Copyright 2046, The Masters
34 35 > Some stuff to ponder very carefully.
35 36 > EOF
36 37 $ hg add stuff.txt
37 38 $ hg ci -m stuff
38 39
39 40 Repository data:
40 41
41 42 $ hg cat stuff.txt
42 43 Some stuff to ponder very carefully.
43 44
44 45 Fresh checkout:
45 46
46 47 $ rm stuff.txt
47 48 $ hg up -C
48 49 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
49 50 $ cat stuff.txt
50 51 Copyright 2046, The Masters
51 52 Some stuff to ponder very carefully.
52 53 $ echo "Very very carefully." >> stuff.txt
53 54 $ hg stat
54 55 M stuff.txt
55 56
56 57 $ echo "Unauthorized material subject to destruction." > morestuff.txt
57 58
58 59 Problem encoding:
59 60
60 61 $ hg add morestuff.txt
61 62 $ hg ci -m morestuff
62 63 abort: missing header "Copyright 2046, The Masters" in morestuff.txt
63 64 [255]
64 65 $ hg stat
65 66 M stuff.txt
66 67 A morestuff.txt
General Comments 0
You need to be logged in to leave comments. Login now