author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Fri, 01 Dec 2023 22:44:33 +0100 | |
changeset 51268 | 622f00b350be |
parent 51267 | 195ab99cf791 |
child 51269 | db121ddd171e |
permissions | -rw-r--r-- |
37406
8c37c3220ebc
tests: skip test-censor.t when using simple store
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35393
diff
changeset
|
1 |
#require no-reposimplestore |
47457
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
2 |
#testcases revlogv1 revlogv2 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
3 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
4 |
#if revlogv2 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
5 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
6 |
$ cat >> $HGRCPATH <<EOF |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
7 |
> [experimental] |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
8 |
> revlogv2=enable-unstable-format-and-corrupt-my-data |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
9 |
> EOF |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
10 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
11 |
#endif |
37406
8c37c3220ebc
tests: skip test-censor.t when using simple store
Gregory Szorc <gregory.szorc@gmail.com>
parents:
35393
diff
changeset
|
12 |
|
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
13 |
$ cp $HGRCPATH $HGRCPATH.orig |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
14 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
15 |
Create repo with unimpeachable content |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
16 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
17 |
$ hg init r |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
18 |
$ cd r |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
19 |
$ echo 'Initially untainted file' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
20 |
$ echo 'Normal file here' > bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
21 |
$ hg add target bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
22 |
$ hg ci -m init |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
23 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
24 |
Clone repo so we can test pull later |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
25 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
26 |
$ cd .. |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
27 |
$ hg clone r rpull |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
28 |
updating to branch default |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
29 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
30 |
$ cd r |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
31 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
32 |
Introduce content which will ultimately require censorship. Name the first |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
33 |
censored node C1, second C2, and so on |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
34 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
35 |
$ echo 'Tainted file' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
36 |
$ echo 'Passwords: hunter2' >> target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
37 |
$ hg ci -m taint target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
38 |
$ C1=`hg id --debug -i` |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
39 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
40 |
$ echo 'hunter3' >> target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
41 |
$ echo 'Normal file v2' > bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
42 |
$ hg ci -m moretaint target bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
43 |
$ C2=`hg id --debug -i` |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
44 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
45 |
Add a new sanitized versions to correct our mistake. Name the first head H1, |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
46 |
the second head H2, and so on |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
47 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
48 |
$ echo 'Tainted file is now sanitized' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
49 |
$ hg ci -m sanitized target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
50 |
$ H1=`hg id --debug -i` |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
51 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
52 |
$ hg update -r $C2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
53 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
54 |
$ echo 'Tainted file now super sanitized' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
55 |
$ hg ci -m 'super sanitized' target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
56 |
created new head |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
57 |
$ H2=`hg id --debug -i` |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
58 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
59 |
Verify target contents before censorship at each revision |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
60 |
|
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
61 |
$ hg cat -r $H1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
62 |
Tainted file is now sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
63 |
$ hg cat -r $H2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
64 |
Tainted file now super sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
65 |
$ hg cat -r $C2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
66 |
Tainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
67 |
Passwords: hunter2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
68 |
hunter3 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
69 |
$ hg cat -r $C1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
70 |
Tainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
71 |
Passwords: hunter2 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
72 |
$ hg cat -r 0 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
73 |
Initially untainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
74 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
75 |
Censor revision with 2 offenses |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
76 |
|
25806
5e18f6e39006
censor: make various path forms available like other Mercurial commands
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24361
diff
changeset
|
77 |
(this also tests file pattern matching: path relative to cwd case) |
5e18f6e39006
censor: make various path forms available like other Mercurial commands
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24361
diff
changeset
|
78 |
|
5e18f6e39006
censor: make various path forms available like other Mercurial commands
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24361
diff
changeset
|
79 |
$ mkdir -p foo/bar/baz |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
80 |
$ hg --config extensions.censor= --cwd foo/bar/baz censor -r $C2 -t "remove password" ../../../target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
81 |
checking for the censored content in 2 heads |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
82 |
$ hg cat -r $H1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
83 |
Tainted file is now sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
84 |
$ hg cat -r $H2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
85 |
Tainted file now super sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
86 |
$ hg cat -r $C2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
87 |
abort: censored node: 1e0247a9a4b7 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
88 |
(set censor.policy to ignore errors) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
89 |
$ hg cat -r $C1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
90 |
Tainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
91 |
Passwords: hunter2 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
92 |
$ hg cat -r 0 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
93 |
Initially untainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
94 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
95 |
Censor revision with 1 offense |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
96 |
|
25806
5e18f6e39006
censor: make various path forms available like other Mercurial commands
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24361
diff
changeset
|
97 |
(this also tests file pattern matching: with 'path:' scheme) |
5e18f6e39006
censor: make various path forms available like other Mercurial commands
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
24361
diff
changeset
|
98 |
|
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
99 |
$ hg --config extensions.censor= --cwd foo/bar/baz censor -r $C1 path:target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
100 |
checking for the censored content in 2 heads |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
101 |
$ hg cat -r $H1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
102 |
Tainted file is now sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
103 |
$ hg cat -r $H2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
104 |
Tainted file now super sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
105 |
$ hg cat -r $C2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
106 |
abort: censored node: 1e0247a9a4b7 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
107 |
(set censor.policy to ignore errors) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
108 |
$ hg cat -r $C1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
109 |
abort: censored node: 613bc869fceb |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
110 |
(set censor.policy to ignore errors) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
111 |
$ hg cat -r 0 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
112 |
Initially untainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
113 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
114 |
Can only checkout target at uncensored revisions, -X is workaround for --all |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
115 |
|
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
116 |
$ hg revert -r $C2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
117 |
abort: censored node: 1e0247a9a4b7 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
118 |
(set censor.policy to ignore errors) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
119 |
$ hg revert -r $C1 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
120 |
abort: censored node: 613bc869fceb |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
121 |
(set censor.policy to ignore errors) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
122 |
$ hg revert -r $C1 --all |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
123 |
reverting bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
124 |
reverting target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
125 |
abort: censored node: 613bc869fceb |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
126 |
(set censor.policy to ignore errors) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
127 |
[255] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
128 |
$ hg revert -r $C1 --all -X target |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
129 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
130 |
Tainted file now super sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
131 |
$ hg revert -r 0 --all |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
132 |
reverting target |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
133 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
134 |
Initially untainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
135 |
$ hg revert -r $H2 --all |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
136 |
reverting bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
137 |
reverting target |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
138 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
139 |
Tainted file now super sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
140 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
141 |
Uncensored file can be viewed at any revision |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
142 |
|
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
143 |
$ hg cat -r $H1 bystander | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
144 |
Normal file v2 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
145 |
$ hg cat -r $C2 bystander | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
146 |
Normal file v2 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
147 |
$ hg cat -r $C1 bystander | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
148 |
Normal file here |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
149 |
$ hg cat -r 0 bystander | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
150 |
Normal file here |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
151 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
152 |
Can update to children of censored revision |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
153 |
|
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
154 |
$ hg update -r $H1 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
155 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
156 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
157 |
Tainted file is now sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
158 |
$ hg update -r $H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
159 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
160 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
161 |
Tainted file now super sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
162 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
163 |
Set censor policy to abort in trusted $HGRC so hg verify fails |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
164 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
165 |
$ cp $HGRCPATH.orig $HGRCPATH |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
166 |
$ cat >> $HGRCPATH <<EOF |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
167 |
> [censor] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
168 |
> policy = abort |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
169 |
> EOF |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
170 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
171 |
Repo fails verification due to censorship |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
172 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
173 |
$ hg verify |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
174 |
checking changesets |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
175 |
checking manifests |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
176 |
crosschecking files in changesets and manifests |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
177 |
checking files |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
178 |
target@1: censored file data |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
179 |
target@2: censored file data |
49826
c84844cd523a
verify: also check dirstate
Raphaël Gomès <rgomes@octobus.net>
parents:
49825
diff
changeset
|
180 |
not checking dirstate because of previous errors |
39489
f1186c292d03
verify: make output less confusing (issue5924)
Meirambek Omyrzak <meirambek77@gmail.com>
parents:
39480
diff
changeset
|
181 |
checked 5 changesets with 7 changes to 2 files |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
182 |
2 integrity errors encountered! |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
183 |
(first damaged changeset appears to be 1) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
184 |
[1] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
185 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
186 |
Cannot update to revision with censored data |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
187 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
188 |
$ hg update -r $C2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
189 |
abort: censored node: 1e0247a9a4b7 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
190 |
(set censor.policy to ignore errors) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
191 |
[255] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
192 |
$ hg update -r $C1 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
193 |
abort: censored node: 613bc869fceb |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
194 |
(set censor.policy to ignore errors) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
195 |
[255] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
196 |
$ hg update -r 0 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
197 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
198 |
$ hg update -r $H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
199 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
200 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
201 |
Set censor policy to ignore in trusted $HGRC so hg verify passes |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
202 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
203 |
$ cp $HGRCPATH.orig $HGRCPATH |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
204 |
$ cat >> $HGRCPATH <<EOF |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
205 |
> [censor] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
206 |
> policy = ignore |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
207 |
> EOF |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
208 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
209 |
Repo passes verification with warnings with explicit config |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
210 |
|
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49174
diff
changeset
|
211 |
$ hg verify -q |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
212 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
213 |
May update to revision with censored data with explicit config |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
214 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
215 |
$ hg update -r $C2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
216 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
217 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
218 |
$ hg update -r $C1 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
219 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
220 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
221 |
$ hg update -r 0 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
222 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
223 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
224 |
Initially untainted file |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
225 |
$ hg update -r $H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
226 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
227 |
$ cat target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
228 |
Tainted file now super sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
229 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
230 |
Can merge in revision with censored data. Test requires one branch of history |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
231 |
with the file censored, but we can't censor at a head, so advance H1. |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
232 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
233 |
$ hg update -r $H1 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
234 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
235 |
$ C3=$H1 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
236 |
$ echo 'advanced head H1' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
237 |
$ hg ci -m 'advance head H1' target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
238 |
$ H1=`hg id --debug -i` |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
239 |
$ hg --config extensions.censor= censor -r $C3 target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
240 |
checking for the censored content in 2 heads |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
241 |
$ hg update -r $H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
242 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
243 |
$ hg merge -r $C3 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
244 |
merging target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
245 |
0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
246 |
(branch merge, don't forget to commit) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
247 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
248 |
Revisions present in repository heads may not be censored |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
249 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
250 |
$ hg update -C -r $H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
251 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
252 |
$ hg --config extensions.censor= censor -r $H2 target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
253 |
checking for the censored content in 2 heads |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
254 |
abort: cannot censor file in heads (78a8fc215e79) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
255 |
(clean/delete and commit first) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
256 |
[255] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
257 |
$ echo 'twiddling thumbs' > bystander |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
258 |
$ hg ci -m 'bystander commit' |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
259 |
$ H2=`hg id --debug -i` |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
260 |
$ hg --config extensions.censor= censor -r "$H2^" target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
261 |
checking for the censored content in 2 heads |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
262 |
abort: cannot censor file in heads (efbe78065929) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
263 |
(clean/delete and commit first) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
264 |
[255] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
265 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
266 |
Cannot censor working directory |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
267 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
268 |
$ echo 'seriously no passwords' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
269 |
$ hg ci -m 'extend second head arbitrarily' target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
270 |
$ H2=`hg id --debug -i` |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
271 |
$ hg update -r "$H2^" |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
272 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
273 |
$ hg --config extensions.censor= censor -r . target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
274 |
checking for the censored content in 2 heads |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
275 |
abort: cannot censor working directory |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
276 |
(clean/delete/update first) |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
277 |
[255] |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
278 |
$ hg update -r $H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
279 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
280 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
281 |
Can re-add file after being deleted + censored |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
282 |
|
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
283 |
$ C4=$H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
284 |
$ hg rm target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
285 |
$ hg ci -m 'delete target so it may be censored' |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
286 |
$ H2=`hg id --debug -i` |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
287 |
$ hg --config extensions.censor= censor -r $C4 target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
288 |
checking for the censored content in 2 heads |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
289 |
$ hg cat -r $C4 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
290 |
$ hg cat -r "$H2^^" target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
291 |
Tainted file now super sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
292 |
$ echo 'fresh start' > target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
293 |
$ hg add target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
294 |
$ hg ci -m reincarnated target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
295 |
$ H2=`hg id --debug -i` |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
296 |
$ hg cat -r $H2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
297 |
fresh start |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
298 |
$ hg cat -r "$H2^" target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
299 |
target: no such file in rev 452ec1762369 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
300 |
$ hg cat -r $C4 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
301 |
$ hg cat -r "$H2^^^" target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
302 |
Tainted file now super sanitized |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
303 |
|
51156
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
304 |
Can censor enough revision to move back to inline storage |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
305 |
|
51156
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
306 |
$ hg debugrevlogstats | grep target |
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
307 |
rev-count data-size inl type target |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
308 |
8 ??? no file target (glob) (revlogv2 !) |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
309 |
8 ??? yes file target (glob) (revlogv1 !) |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
310 |
$ cat /dev/rand?m | dd status=none count=200 | f --hexdump > target |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
311 |
$ hg ci -m 'add 100k passwords' |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
312 |
$ H2=`hg id --debug -i` |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
313 |
$ C5=$H2 |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
314 |
$ hg revert -r "$H2^" target |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
315 |
$ hg ci -m 'cleaned 100k passwords' |
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
316 |
$ H2=`hg id --debug -i` |
51156
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
317 |
$ hg debugrevlogstats | grep target |
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
318 |
rev-count data-size inl type target |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
319 |
10 ?????? no file target (glob) |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
320 |
$ hg --config extensions.censor= censor -r $C5 target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
321 |
checking for the censored content in 2 heads |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
322 |
|
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
323 |
The important part is for the censor operation to not crash and the repository |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
324 |
to not be corrupted. Right now this involve keeping the revlog split. |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
325 |
|
51156
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
326 |
$ hg debugrevlogstats | grep target |
22d11305f365
censor: show that the `not-inline` → `inline` test is broken
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51079
diff
changeset
|
327 |
rev-count data-size inl type target |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
328 |
10 ??? no file target (glob) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
329 |
$ hg cat -r $C5 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
330 |
$ hg cat -r $H2 target | head -n 10 |
24347
1bcfecbbf569
censor: add censor command to hgext with basic client-side tests
Mike Edgar <adgar@google.com>
parents:
diff
changeset
|
331 |
fresh start |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
332 |
$ hg verify |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
333 |
checking changesets |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
334 |
checking manifests |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
335 |
crosschecking files in changesets and manifests |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
336 |
checking files |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
337 |
checking dirstate |
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
338 |
checked 12 changesets with 13 changes to 2 files |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
339 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
340 |
Repo with censored nodes can be cloned and cloned nodes are censored |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
341 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
342 |
$ cd .. |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
343 |
$ hg clone r rclone |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
344 |
updating to branch default |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
345 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
346 |
$ cd rclone |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
347 |
$ hg cat -r $H1 target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
348 |
advanced head H1 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
349 |
$ hg cat -r $H2~5 target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
350 |
Tainted file now super sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
351 |
$ hg cat -r $C2 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
352 |
$ hg cat -r $C1 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
353 |
$ hg cat -r 0 target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
354 |
Initially untainted file |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49174
diff
changeset
|
355 |
$ hg verify -q |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
356 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
357 |
Repo cloned before tainted content introduced can pull censored nodes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
358 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
359 |
$ cd ../rpull |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
360 |
$ hg cat -r tip target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
361 |
Initially untainted file |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49174
diff
changeset
|
362 |
$ hg verify -q |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
363 |
$ hg pull -r $H1 -r $H2 |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
34661
diff
changeset
|
364 |
pulling from $TESTTMP/r |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
365 |
searching for changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
366 |
adding changesets |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
367 |
adding manifests |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
368 |
adding file changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
369 |
added 11 changesets with 11 changes to 2 files (+1 heads) |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
370 |
new changesets * (glob) |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
371 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
372 |
$ hg update 4 |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
373 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
374 |
$ cat target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
375 |
Tainted file now super sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
376 |
$ hg cat -r $H1 target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
377 |
advanced head H1 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
378 |
$ hg cat -r $H2~5 target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
379 |
Tainted file now super sanitized |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
380 |
$ hg cat -r $C2 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
381 |
$ hg cat -r $C1 target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
382 |
$ hg cat -r 0 target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
383 |
Initially untainted file |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49174
diff
changeset
|
384 |
$ hg verify -q |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
385 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
386 |
Censored nodes can be pushed if they censor previously unexchanged nodes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
387 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
388 |
$ echo 'Passwords: hunter2hunter2' > target |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
389 |
$ hg ci -m 're-add password from clone' target |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
390 |
created new head |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
391 |
$ H3=`hg id --debug -i` |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
392 |
$ REV=$H3 |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
393 |
$ echo 'Re-sanitized; nothing to see here' > target |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
394 |
$ hg ci -m 're-sanitized' target |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
395 |
$ H2=`hg id --debug -i` |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
396 |
$ CLEANREV=$H2 |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
397 |
$ hg cat -r $REV target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
398 |
Passwords: hunter2hunter2 |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
399 |
$ hg --config extensions.censor= censor -r $REV target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
400 |
checking for the censored content in 3 heads |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
401 |
$ hg cat -r $REV target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
402 |
$ hg cat -r $CLEANREV target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
403 |
Re-sanitized; nothing to see here |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
404 |
$ hg push -f -r $H2 |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
34661
diff
changeset
|
405 |
pushing to $TESTTMP/r |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
406 |
searching for changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
407 |
adding changesets |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
408 |
adding manifests |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
409 |
adding file changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
410 |
added 2 changesets with 2 changes to 1 files (+1 heads) |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
411 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
412 |
$ cd ../r |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
413 |
$ hg cat -r $REV target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
414 |
$ hg cat -r $CLEANREV target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
415 |
Re-sanitized; nothing to see here |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
416 |
$ hg update $CLEANREV |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
417 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
418 |
$ cat target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
419 |
Re-sanitized; nothing to see here |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
420 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
421 |
Censored nodes can be bundled up and unbundled in another repo |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
422 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
423 |
$ hg bundle --base 0 ../pwbundle |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
424 |
13 changesets found |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
425 |
$ cd ../rclone |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
426 |
$ hg unbundle ../pwbundle |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
427 |
adding changesets |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
428 |
adding manifests |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
429 |
adding file changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
430 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
431 |
new changesets * (glob) |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
432 |
(run 'hg heads .' to see heads, 'hg merge' to merge) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
433 |
$ hg cat -r $REV target | head -n 10 |
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
434 |
$ hg cat -r $CLEANREV target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
435 |
Re-sanitized; nothing to see here |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
436 |
$ hg update $CLEANREV |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
437 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
438 |
$ cat target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
439 |
Re-sanitized; nothing to see here |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49174
diff
changeset
|
440 |
$ hg verify -q |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
441 |
|
43433
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
442 |
Grepping only warns, doesn't error out |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
443 |
|
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
444 |
$ cd ../rpull |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
445 |
$ hg grep 'Normal file' |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
446 |
bystander:Normal file v2 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
447 |
$ hg grep nothing |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
448 |
target:Re-sanitized; nothing to see here |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
449 |
$ hg grep --diff 'Normal file' |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
450 |
cannot search in censored file: target:7 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
451 |
cannot search in censored file: target:10 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
452 |
cannot search in censored file: target:12 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
453 |
bystander:6:-:Normal file v2 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
454 |
cannot search in censored file: target:1 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
455 |
cannot search in censored file: target:2 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
456 |
cannot search in censored file: target:3 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
457 |
bystander:2:-:Normal file here |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
458 |
bystander:2:+:Normal file v2 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
459 |
bystander:0:+:Normal file here |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
460 |
$ hg grep --diff nothing |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
461 |
cannot search in censored file: target:7 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
462 |
cannot search in censored file: target:10 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
463 |
cannot search in censored file: target:12 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
464 |
target:13:+:Re-sanitized; nothing to see here |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
465 |
cannot search in censored file: target:1 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
466 |
cannot search in censored file: target:2 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
467 |
cannot search in censored file: target:3 |
13b8097dccbf
grep: warn on censored revisions instead of erroring out
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
39707
diff
changeset
|
468 |
|
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
469 |
Censored nodes can be imported on top of censored nodes, consecutively |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
470 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
471 |
$ hg init ../rimport |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
472 |
$ hg bundle --base 1 ../rimport/splitbundle |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
473 |
12 changesets found |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
474 |
$ cd ../rimport |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
475 |
$ hg pull -r $H1 -r $H2 ../r |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
476 |
pulling from ../r |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
477 |
adding changesets |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
478 |
adding manifests |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
479 |
adding file changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
480 |
added 8 changesets with 10 changes to 2 files (+1 heads) |
34661
eb586ed5d8ce
transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32940
diff
changeset
|
481 |
new changesets e97f55b2665a:dcbaf17bf3a1 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
482 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
483 |
$ hg unbundle splitbundle |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
484 |
adding changesets |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
485 |
adding manifests |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
486 |
adding file changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
487 |
added 6 changesets with 5 changes to 2 files (+1 heads) |
51159
3e2a878fb96f
censor: fix things around inlining
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51156
diff
changeset
|
488 |
new changesets * (glob) |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
489 |
(run 'hg heads .' to see heads, 'hg merge' to merge) |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
490 |
$ hg update $H2 |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
491 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
492 |
$ cat target | head -n 10 |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
493 |
Re-sanitized; nothing to see here |
49825
2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
Raphaël Gomès <rgomes@octobus.net>
parents:
49174
diff
changeset
|
494 |
$ hg verify -q |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
495 |
$ cd ../r |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
496 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
497 |
Can import bundle where first revision of a file is censored |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
498 |
|
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
499 |
$ hg init ../rinit |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
500 |
$ hg --config extensions.censor= censor -r 0 target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
501 |
checking for the censored content in 3 heads |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
502 |
$ hg bundle -r 0 --base null ../rinit/initbundle |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
503 |
1 changesets found |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
504 |
$ cd ../rinit |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
505 |
$ hg unbundle initbundle |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
506 |
adding changesets |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
507 |
adding manifests |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
508 |
adding file changes |
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
509 |
added 1 changesets with 2 changes to 2 files |
39480
89630d0b3e23
phase: report number of non-public changeset alongside the new range
Boris Feld <boris.feld@octobus.net>
parents:
37406
diff
changeset
|
510 |
new changesets e97f55b2665a (1 drafts) |
24348
b7f936f47f2b
censor: add exchange tests, via local push/pull and bundle/unbundle
Mike Edgar <adgar@google.com>
parents:
24347
diff
changeset
|
511 |
(run 'hg update' to get a working copy) |
47390
65b86f516ba2
censor: reduce risk of censor test blowing up output limit
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
43433
diff
changeset
|
512 |
$ hg cat -r 0 target | head -n 10 |
47457
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
513 |
|
51268
622f00b350be
censor: add a command flag to skip the head checks
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51267
diff
changeset
|
514 |
Can skip the head checking steps |
622f00b350be
censor: add a command flag to skip the head checks
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51267
diff
changeset
|
515 |
|
622f00b350be
censor: add a command flag to skip the head checks
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51267
diff
changeset
|
516 |
$ hg --config extensions.censor= censor -r 0 --no-check-heads target |
622f00b350be
censor: add a command flag to skip the head checks
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51267
diff
changeset
|
517 |
|
47457
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
518 |
#if revlogv2 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
519 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
520 |
Testing feature that does not work in revlog v1 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
521 |
=============================================== |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
522 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
523 |
Censoring a revision that is used as delta base |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
524 |
----------------------------------------------- |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
525 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
526 |
$ cd .. |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
527 |
$ hg init censor-with-delta |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
528 |
$ cd censor-with-delta |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
529 |
$ echo root > target |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
530 |
$ hg add target |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
531 |
$ hg commit -m root |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
532 |
$ B0=`hg id --debug -i` |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
533 |
$ for x in `"$PYTHON" $TESTDIR/seq.py 0 50000` |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
534 |
> do |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
535 |
> echo "Password: hunter$x" >> target |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
536 |
> done |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
537 |
$ hg ci -m 'write a long file' |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
538 |
$ B1=`hg id --debug -i` |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
539 |
$ echo 'small change (should create a delta)' >> target |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
540 |
$ hg ci -m 'create a delta over the password' |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
541 |
(should show that the last revision is a delta, not a snapshot) |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
542 |
$ B2=`hg id --debug -i` |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
543 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
544 |
Make sure the last revision is a delta against the revision we will censor |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
545 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
546 |
$ hg debugdeltachain target -T '{rev} {chainid} {chainlen} {prevrev}\n' |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
547 |
0 1 1 -1 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
548 |
1 2 1 -1 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
549 |
2 2 2 1 |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
550 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
551 |
Censor the file |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
552 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
553 |
$ hg cat -r $B1 target | wc -l |
48324
95ea181d9bdd
tests: fix test-censor by improving regexp (issue6585)
Thomas Klausner <wiz@gatalith.at>
parents:
47457
diff
changeset
|
554 |
*50002 (re) |
49174
3f86ee422095
censor: make rhg fall back to python when encountering a censored node
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
48324
diff
changeset
|
555 |
$ hg --config extensions.censor= censor -r $B1 target |
51267
195ab99cf791
censor: inform the user that we are spending time checking heads
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
51159
diff
changeset
|
556 |
checking for the censored content in 1 heads |
47457
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
557 |
$ hg cat -r $B1 target | wc -l |
48324
95ea181d9bdd
tests: fix test-censor by improving regexp (issue6585)
Thomas Klausner <wiz@gatalith.at>
parents:
47457
diff
changeset
|
558 |
*0 (re) |
47457
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
559 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
560 |
Check the children is fine |
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
561 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
562 |
$ hg cat -r $B2 target | wc -l |
48324
95ea181d9bdd
tests: fix test-censor by improving regexp (issue6585)
Thomas Klausner <wiz@gatalith.at>
parents:
47457
diff
changeset
|
563 |
*50003 (re) |
47457
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
564 |
|
f8330a3fc39f
censor: implement censoring for revlogv2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
47392
diff
changeset
|
565 |
#endif |
51078
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
566 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
567 |
Testing repository upgrade with censors revision |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
568 |
================================================ |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
569 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
570 |
$ cd ../rclone |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
571 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
572 |
With the "abort" policy |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
573 |
======================= |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
574 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
575 |
$ hg verify --config censor.policy=ignore |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
576 |
checking changesets |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
577 |
checking manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
578 |
crosschecking files in changesets and manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
579 |
checking files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
580 |
checking dirstate |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
581 |
checked 14 changesets with 15 changes to 2 files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
582 |
$ hg debugupgraderepo --run --quiet \ |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
583 |
> --optimize re-delta-parent \ |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
584 |
> --config censor.policy=abort |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
585 |
upgrade will perform the following actions: |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
586 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
587 |
requirements |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
588 |
preserved: * (glob) |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
589 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
590 |
optimisations: re-delta-parent |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
591 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
592 |
processed revlogs: |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
593 |
- all-filelogs |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
594 |
- changelog |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
595 |
- manifest |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
596 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
597 |
$ hg verify --config censor.policy=ignore |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
598 |
checking changesets |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
599 |
checking manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
600 |
crosschecking files in changesets and manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
601 |
checking files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
602 |
checking dirstate |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
603 |
checked 14 changesets with 15 changes to 2 files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
604 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
605 |
With the "ignore" policy |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
606 |
======================== |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
607 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
608 |
$ hg verify --config censor.policy=ignore |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
609 |
checking changesets |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
610 |
checking manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
611 |
crosschecking files in changesets and manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
612 |
checking files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
613 |
checking dirstate |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
614 |
checked 14 changesets with 15 changes to 2 files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
615 |
$ hg debugupgraderepo --run --quiet \ |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
616 |
> --optimize re-delta-parent \ |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
617 |
> --config censor.policy=ignore |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
618 |
upgrade will perform the following actions: |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
619 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
620 |
requirements |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
621 |
preserved: * (glob) |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
622 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
623 |
optimisations: re-delta-parent |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
624 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
625 |
processed revlogs: |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
626 |
- all-filelogs |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
627 |
- changelog |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
628 |
- manifest |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
629 |
|
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
630 |
$ hg verify --config censor.policy=ignore |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
631 |
checking changesets |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
632 |
checking manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
633 |
crosschecking files in changesets and manifests |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
634 |
checking files |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
635 |
checking dirstate |
45dab30f9d55
censor: show that censored revision prevent repository upgrade
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49826
diff
changeset
|
636 |
checked 14 changesets with 15 changes to 2 files |