annotate tests/test-fncache.out @ 11488:f786fc4b8764 stable 1.6

log: follow filenames through renames (issue647) In commands.log a displayer was initialized from cmdutil.show_changeset() with the initial matchfn (which designates the specified files which only is correct in the highest revision in the range). prep() is handed the correct list of files, but displayer.show() didn't use that list but keept using the original matchfn. The matchfn argument to cmdutil.show_changeset() wasn't specified in other places and is only used in .show(), so now we give the matchfn as an optional parameter to .show(). We do however still have to detect --patch and --stat from opts in show_changeset() and let it imply a matchall, but that can now be overruled with the new .show() matchfn parameter.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 29 Jun 2010 12:12:34 +0200
parents a685011ed38e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7290
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
1 % init repo1
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
2
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
3 % add a; ci
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
4 adding a
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
5
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
6 % cat .hg/store/fncache
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
7 data/a.i
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
8
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
9 % add a.i/b; ci
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
10 adding a.i/b
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
11
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
12 % cat .hg/store/fncache
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
13 data/a.i
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
14 data/a.i.hg/b.i
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
15
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
16 % add a.i.hg/c; ci
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
17 adding a.i.hg/c
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
18
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
19 % cat .hg/store/fncache
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
20 data/a.i
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
21 data/a.i.hg/b.i
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
22 data/a.i.hg.hg/c.i
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
23
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
24 % hg verify
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
25 checking changesets
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
26 checking manifests
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
27 crosschecking files in changesets and manifests
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
28 checking files
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
29 3 files, 3 changesets, 3 total revisions
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
30
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
31 % rm .hg/store/fncache
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
32
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
33 % hg verify
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
34 checking changesets
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
35 checking manifests
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
36 crosschecking files in changesets and manifests
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
37 checking files
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
38 data/a.i@0: missing revlog!
8531
810387f59696 filelog encoding: move the encoding/decoding into store
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 7833
diff changeset
39 data/a.i.hg/c.i@2: missing revlog!
810387f59696 filelog encoding: move the encoding/decoding into store
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 7833
diff changeset
40 data/a.i/b.i@1: missing revlog!
7290
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
41 3 files, 3 changesets, 3 total revisions
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
42 3 integrity errors encountered!
a3871028aacf add test-fncache
Adrian Buehlmann <adrian@cadifra.com>
parents:
diff changeset
43 (first damaged changeset appears to be 0)
8633
c31fe74a6633 store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 8531
diff changeset
44 % non store repo
c31fe74a6633 store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 8531
diff changeset
45 adding tst.d/foo
8721
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
46 .hg
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
47 .hg/00changelog.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
48 .hg/00manifest.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
49 .hg/data
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
50 .hg/data/tst.d.hg
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
51 .hg/data/tst.d.hg/foo.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
52 .hg/dirstate
9934
720f70b720d3 commit: save commit message so it's not destroyed by rollback.
Greg Ward <greg-hg@gerg.ca>
parents: 8721
diff changeset
53 .hg/last-message.txt
8721
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
54 .hg/requires
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
55 .hg/undo
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
56 .hg/undo.branch
10881
a685011ed38e localrepo: add desc parameter to transaction
Steve Borho <steve@borho.org>
parents: 9934
diff changeset
57 .hg/undo.desc
8721
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
58 .hg/undo.dirstate
8633
c31fe74a6633 store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 8531
diff changeset
59 % non fncache repo
c31fe74a6633 store encoding: .i/.d encoding for non-store repo (broken by 810387f59696)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 8531
diff changeset
60 adding tst.d/Foo
8721
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
61 .hg
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
62 .hg/00changelog.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
63 .hg/dirstate
9934
720f70b720d3 commit: save commit message so it's not destroyed by rollback.
Greg Ward <greg-hg@gerg.ca>
parents: 8721
diff changeset
64 .hg/last-message.txt
8721
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
65 .hg/requires
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
66 .hg/store
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
67 .hg/store/00changelog.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
68 .hg/store/00manifest.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
69 .hg/store/data
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
70 .hg/store/data/tst.d.hg
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
71 .hg/store/data/tst.d.hg/_foo.i
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
72 .hg/store/undo
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
73 .hg/undo.branch
10881
a685011ed38e localrepo: add desc parameter to transaction
Steve Borho <steve@borho.org>
parents: 9934
diff changeset
74 .hg/undo.desc
8721
2816239e0020 test-fncache: Use find instead of ls -R.
Will Maier <willmaier@ml1.net>
parents: 8633
diff changeset
75 .hg/undo.dirstate