Mercurial > hg
comparison tests/test-censor2.t @ 49165:72936be2a21b stable
censor: demonstrate a bug
Differential Revision: https://phab.mercurial-scm.org/D12584
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Fri, 22 Apr 2022 14:39:00 +0100 |
parents | |
children | 77b5a190571c |
comparison
equal
deleted
inserted
replaced
49163:9889bf0fd960 | 49165:72936be2a21b |
---|---|
1 $ cat >> $HGRCPATH <<EOF | |
2 > [censor] | |
3 > policy=ignore | |
4 > EOF | |
5 | |
6 $ mkdir r | |
7 $ cd r | |
8 $ hg init | |
9 $ echo secret > target | |
10 $ hg commit -Am "secret" | |
11 adding target | |
12 $ touch bystander | |
13 $ hg commit -Am "innocent" | |
14 adding bystander | |
15 $ echo erased-secret > target | |
16 $ hg commit -m "erased secret" | |
17 $ hg censor target --config extensions.censor= -r ".^^" | |
18 $ hg update ".^" | |
19 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
20 $ cat target | |
21 $ hg update tip | |
22 abort: file censored data/target:b1c12cf98dc8 (known-bad-output !) | |
23 [255] |