Mercurial > hg
annotate tests/test-verify.out @ 12252:4481f8a93c7a stable
convert/darcs: handle non-ASCII metadata in darcs changelog (issue2354)
Given a commit author or message with non-ASCII characters in a darcs
repo, convert would raise a UnicodeEncodeError when adding changesets
to the hg changelog.
This happened because etree returns back unicode objects for any text
it can't encode into ASCII. convert was passing these objects to
changelog.add(), which would then attempt encoding.fromlocal() on
them.
This patch ensures converter_source.recode() is called on each piece
of commit data returned by etree.
(Also note that darcs is currently encoding agnostic and will print
out whatever is in a patch's metadata byte-for-byte, even in the XML
changelog.)
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Fri, 10 Sep 2010 09:30:50 -0500 |
parents | 581066a319e5 |
children |
rev | line source |
---|---|
6893 | 1 % prepare repo |
2 adding FOO.txt | |
3 adding QUICK.txt | |
4 adding bar.txt | |
5 | |
6 % verify | |
7 checking changesets | |
8 checking manifests | |
9 crosschecking files in changesets and manifests | |
10 checking files | |
11 3 files, 1 changesets, 3 total revisions | |
12 | |
9690
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
13 % verify with journal |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
14 abandoned transaction found - run hg recover |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
15 checking changesets |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
16 checking manifests |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
17 crosschecking files in changesets and manifests |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
18 checking files |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
19 3 files, 1 changesets, 3 total revisions |
b33d70849a20
verify: report existence of journal
Sune Foldager <cryo@cyanite.org>
parents:
8016
diff
changeset
|
20 |
6893 | 21 % introduce some bugs in repo |
22 | |
23 % verify | |
24 checking changesets | |
25 checking manifests | |
26 crosschecking files in changesets and manifests | |
27 checking files | |
28 data/FOO.txt.i@0: missing revlog! | |
29 0: empty or missing FOO.txt | |
30 FOO.txt@0: f62022d3d590 in manifests not found | |
31 data/QUICK.txt.i@0: missing revlog! | |
32 0: empty or missing QUICK.txt | |
33 QUICK.txt@0: 88b857db8eba in manifests not found | |
34 data/bar.txt.i@0: missing revlog! | |
35 0: empty or missing bar.txt | |
36 bar.txt@0: 256559129457 in manifests not found | |
37 3 files, 1 changesets, 0 total revisions | |
7229
7946503ec76e
introduce fncache repository layout
Adrian Buehlmann <adrian@cadifra.com>
parents:
6893
diff
changeset
|
38 9 integrity errors encountered! |
6893 | 39 (first damaged changeset appears to be 0) |
8016
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
40 % test revlog corruption |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
41 |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
42 % verify |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
43 checking changesets |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
44 checking manifests |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
45 crosschecking files in changesets and manifests |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
46 checking files |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
47 a@0: broken revlog! (index data/a.i is corrupted) |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
48 warning: orphan revlog 'data/a.i' |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
49 1 files, 1 changesets, 0 total revisions |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
50 1 warnings encountered! |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
51 1 integrity errors encountered! |
baaa832fd253
raise RevlogError when parser can't parse the revlog index
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7229
diff
changeset
|
52 (first damaged changeset appears to be 0) |
12170
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
53 % test revlog format 0 |
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
54 repository uses revlog format 0 |
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
55 checking changesets |
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
56 checking manifests |
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
57 crosschecking files in changesets and manifests |
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
58 checking files |
581066a319e5
verify: fix "missing revlog!" errors for revlog format v0 and add test
Thomas Arendsen Hein <thomas@intevation.de>
parents:
9690
diff
changeset
|
59 1 files, 1 changesets, 1 total revisions |