##// END OF EJS Templates
tests: replace `hg id --debug -i` command substitution with non-debug command...
Matt Harbison -
r52837:2eeca9a8 default
parent child Browse files
Show More
@@ -579,7 +579,7 Check that bisect does not break on obso
579 tip is obsolete
579 tip is obsolete
580 ---------------------
580 ---------------------
581
581
582 $ hg debugobsolete `hg id --debug -i -r tip`
582 $ hg debugobsolete `hg id -T "{node}" -r tip`
583 1 new obsolescence markers
583 1 new obsolescence markers
584 obsoleted 1 changesets
584 obsoleted 1 changesets
585 $ hg bisect --reset
585 $ hg bisect --reset
@@ -608,7 +608,7 Rewritten commits should not crash
608 reverting a
608 reverting a
609 $ hg commit -m 'msg 30 -- fixed'
609 $ hg commit -m 'msg 30 -- fixed'
610 created new head
610 created new head
611 $ hg debugobsolete `hg id --debug -i -r 30` `hg id --debug -i -r .`
611 $ hg debugobsolete `hg id -T "{node}" -r 30` `hg id -T "{node}" -r .`
612 1 new obsolescence markers
612 1 new obsolescence markers
613 obsoleted 1 changesets
613 obsoleted 1 changesets
614 $ hg bisect
614 $ hg bisect
@@ -35,26 +35,26 censored node C1, second C2, and so on
35 $ echo 'Tainted file' > target
35 $ echo 'Tainted file' > target
36 $ echo 'Passwords: hunter2' >> target
36 $ echo 'Passwords: hunter2' >> target
37 $ hg ci -m taint target
37 $ hg ci -m taint target
38 $ C1=`hg id --debug -i`
38 $ C1=`hg id -r . -T "{node}"`
39
39
40 $ echo 'hunter3' >> target
40 $ echo 'hunter3' >> target
41 $ echo 'Normal file v2' > bystander
41 $ echo 'Normal file v2' > bystander
42 $ hg ci -m moretaint target bystander
42 $ hg ci -m moretaint target bystander
43 $ C2=`hg id --debug -i`
43 $ C2=`hg id -r . -T "{node}"`
44
44
45 Add a new sanitized versions to correct our mistake. Name the first head H1,
45 Add a new sanitized versions to correct our mistake. Name the first head H1,
46 the second head H2, and so on
46 the second head H2, and so on
47
47
48 $ echo 'Tainted file is now sanitized' > target
48 $ echo 'Tainted file is now sanitized' > target
49 $ hg ci -m sanitized target
49 $ hg ci -m sanitized target
50 $ H1=`hg id --debug -i`
50 $ H1=`hg id -r . -T "{node}"`
51
51
52 $ hg update -r $C2
52 $ hg update -r $C2
53 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
53 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
54 $ echo 'Tainted file now super sanitized' > target
54 $ echo 'Tainted file now super sanitized' > target
55 $ hg ci -m 'super sanitized' target
55 $ hg ci -m 'super sanitized' target
56 created new head
56 created new head
57 $ H2=`hg id --debug -i`
57 $ H2=`hg id -r . -T "{node}"`
58
58
59 Verify target contents before censorship at each revision
59 Verify target contents before censorship at each revision
60
60
@@ -239,7 +239,7 with the file censored, but we can't cen
239 $ C3=$H1
239 $ C3=$H1
240 $ echo 'advanced head H1' > target
240 $ echo 'advanced head H1' > target
241 $ hg ci -m 'advance head H1' target
241 $ hg ci -m 'advance head H1' target
242 $ H1=`hg id --debug -i`
242 $ H1=`hg id -r . -T "{node}"`
243 $ hg --config extensions.censor= censor -r $C3 target
243 $ hg --config extensions.censor= censor -r $C3 target
244 checking for the censored content in 2 heads
244 checking for the censored content in 2 heads
245 checking for the censored content in the working directory
245 checking for the censored content in the working directory
@@ -262,7 +262,7 Revisions present in repository heads ma
262 [255]
262 [255]
263 $ echo 'twiddling thumbs' > bystander
263 $ echo 'twiddling thumbs' > bystander
264 $ hg ci -m 'bystander commit'
264 $ hg ci -m 'bystander commit'
265 $ H2=`hg id --debug -i`
265 $ H2=`hg id -r . -T "{node}"`
266 $ hg --config extensions.censor= censor -r "$H2^" target
266 $ hg --config extensions.censor= censor -r "$H2^" target
267 checking for the censored content in 2 heads
267 checking for the censored content in 2 heads
268 abort: cannot censor file in heads (efbe78065929)
268 abort: cannot censor file in heads (efbe78065929)
@@ -273,7 +273,7 Cannot censor working directory
273
273
274 $ echo 'seriously no passwords' > target
274 $ echo 'seriously no passwords' > target
275 $ hg ci -m 'extend second head arbitrarily' target
275 $ hg ci -m 'extend second head arbitrarily' target
276 $ H2=`hg id --debug -i`
276 $ H2=`hg id -r . -T "{node}"`
277 $ hg update -r "$H2^"
277 $ hg update -r "$H2^"
278 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
278 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
279 $ hg --config extensions.censor= censor -r . target
279 $ hg --config extensions.censor= censor -r . target
@@ -290,7 +290,7 Can re-add file after being deleted + ce
290 $ C4=$H2
290 $ C4=$H2
291 $ hg rm target
291 $ hg rm target
292 $ hg ci -m 'delete target so it may be censored'
292 $ hg ci -m 'delete target so it may be censored'
293 $ H2=`hg id --debug -i`
293 $ H2=`hg id -r . -T "{node}"`
294 $ hg --config extensions.censor= censor -r $C4 target
294 $ hg --config extensions.censor= censor -r $C4 target
295 checking for the censored content in 2 heads
295 checking for the censored content in 2 heads
296 checking for the censored content in the working directory
296 checking for the censored content in the working directory
@@ -301,7 +301,7 Can re-add file after being deleted + ce
301 $ echo 'fresh start' > target
301 $ echo 'fresh start' > target
302 $ hg add target
302 $ hg add target
303 $ hg ci -m reincarnated target
303 $ hg ci -m reincarnated target
304 $ H2=`hg id --debug -i`
304 $ H2=`hg id -r . -T "{node}"`
305 $ hg cat -r $H2 target | head -n 10
305 $ hg cat -r $H2 target | head -n 10
306 fresh start
306 fresh start
307 $ hg cat -r "$H2^" target | head -n 10
307 $ hg cat -r "$H2^" target | head -n 10
@@ -318,11 +318,11 Can censor enough revision to move back
318 8 ??? yes file target (glob) (revlogv1 !)
318 8 ??? yes file target (glob) (revlogv1 !)
319 $ $TESTDIR/seq.py 4000 | $TESTDIR/sha256line.py > target
319 $ $TESTDIR/seq.py 4000 | $TESTDIR/sha256line.py > target
320 $ hg ci -m 'add 100k passwords'
320 $ hg ci -m 'add 100k passwords'
321 $ H2=`hg id --debug -i`
321 $ H2=`hg id -r . -T "{node}"`
322 $ C5=$H2
322 $ C5=$H2
323 $ hg revert -r "$H2^" target
323 $ hg revert -r "$H2^" target
324 $ hg ci -m 'cleaned 100k passwords'
324 $ hg ci -m 'cleaned 100k passwords'
325 $ H2=`hg id --debug -i`
325 $ H2=`hg id -r . -T "{node}"`
326 $ hg debugrevlogstats | grep target
326 $ hg debugrevlogstats | grep target
327 rev-count data-size inl type target
327 rev-count data-size inl type target
328 10 ?????? no file target (glob)
328 10 ?????? no file target (glob)
@@ -399,11 +399,11 Censored nodes can be pushed if they cen
399 $ echo 'Passwords: hunter2hunter2' > target
399 $ echo 'Passwords: hunter2hunter2' > target
400 $ hg ci -m 're-add password from clone' target
400 $ hg ci -m 're-add password from clone' target
401 created new head
401 created new head
402 $ H3=`hg id --debug -i`
402 $ H3=`hg id -r . -T "{node}"`
403 $ REV=$H3
403 $ REV=$H3
404 $ echo 'Re-sanitized; nothing to see here' > target
404 $ echo 'Re-sanitized; nothing to see here' > target
405 $ hg ci -m 're-sanitized' target
405 $ hg ci -m 're-sanitized' target
406 $ H2=`hg id --debug -i`
406 $ H2=`hg id -r . -T "{node}"`
407 $ CLEANREV=$H2
407 $ CLEANREV=$H2
408 $ hg cat -r $REV target | head -n 10
408 $ hg cat -r $REV target | head -n 10
409 Passwords: hunter2hunter2
409 Passwords: hunter2hunter2
@@ -556,17 +556,17 Censoring a revision that is used as del
556 $ echo root > target
556 $ echo root > target
557 $ hg add target
557 $ hg add target
558 $ hg commit -m root
558 $ hg commit -m root
559 $ B0=`hg id --debug -i`
559 $ B0=`hg id -r . -T "{node}"`
560 $ for x in `"$PYTHON" $TESTDIR/seq.py 0 50000`
560 $ for x in `"$PYTHON" $TESTDIR/seq.py 0 50000`
561 > do
561 > do
562 > echo "Password: hunter$x" >> target
562 > echo "Password: hunter$x" >> target
563 > done
563 > done
564 $ hg ci -m 'write a long file'
564 $ hg ci -m 'write a long file'
565 $ B1=`hg id --debug -i`
565 $ B1=`hg id -r . -T "{node}"`
566 $ echo 'small change (should create a delta)' >> target
566 $ echo 'small change (should create a delta)' >> target
567 $ hg ci -m 'create a delta over the password'
567 $ hg ci -m 'create a delta over the password'
568 (should show that the last revision is a delta, not a snapshot)
568 (should show that the last revision is a delta, not a snapshot)
569 $ B2=`hg id --debug -i`
569 $ B2=`hg id -r . -T "{node}"`
570
570
571 Make sure the last revision is a delta against the revision we will censor
571 Make sure the last revision is a delta against the revision we will censor
572
572
@@ -15,11 +15,11
15 $ echo a >> a
15 $ echo a >> a
16 $ hg ci -Am addb
16 $ hg ci -Am addb
17 adding b
17 adding b
18 $ PARENTID1=`hg id --debug -i`
18 $ PARENTID1=`hg id -r . -T "{node}"`
19 $ echo c > c
19 $ echo c > c
20 $ hg ci -Am addc
20 $ hg ci -Am addc
21 adding c
21 adding c
22 $ PARENTID2=`hg id --debug -i`
22 $ PARENTID2=`hg id -r . -T "{node}"`
23 $ cd ..
23 $ cd ..
24 $ glog -R repo1
24 $ glog -R repo1
25 @ 2:e55c719b85b6 "addc" files: c
25 @ 2:e55c719b85b6 "addc" files: c
@@ -38,10 +38,10
38 adding d
38 adding d
39 $ INVALIDID1=afd12345af
39 $ INVALIDID1=afd12345af
40 $ INVALIDID2=28173x36ddd1e67bf7098d541130558ef5534a86
40 $ INVALIDID2=28173x36ddd1e67bf7098d541130558ef5534a86
41 $ CHILDID1=`hg id --debug -i`
41 $ CHILDID1=`hg id -r . -T "{node}"`
42 $ echo d >> d
42 $ echo d >> d
43 $ hg ci -Am changed
43 $ hg ci -Am changed
44 $ CHILDID2=`hg id --debug -i`
44 $ CHILDID2=`hg id -r . -T "{node}"`
45 $ echo e > e
45 $ echo e > e
46 $ hg ci -Am adde
46 $ hg ci -Am adde
47 adding e
47 adding e
@@ -766,7 +766,7 test hidden changeset are not cloned as
766 > EOF
766 > EOF
767
767
768 (making a changeset hidden; H in that case)
768 (making a changeset hidden; H in that case)
769 $ hg debugobsolete `hg id --debug -r 5`
769 $ hg debugobsolete `hg id -T "{node}" -r 5`
770 1 new obsolescence markers
770 1 new obsolescence markers
771 obsoleted 1 changesets
771 obsoleted 1 changesets
772
772
@@ -1018,7 +1018,7 Commit is hidden as expected
1018 The hidden commit is an orphan but doesn't show up without --hidden
1018 The hidden commit is an orphan but doesn't show up without --hidden
1019 And internal changesets are not considered for unstability.
1019 And internal changesets are not considered for unstability.
1020
1020
1021 $ hg debugobsolete `hg id --debug -ir 0`
1021 $ hg debugobsolete `hg id -T "{node}" -r 0`
1022 1 new obsolescence markers
1022 1 new obsolescence markers
1023 obsoleted 1 changesets
1023 obsoleted 1 changesets
1024 $ hg --hidden log -G -r '(0::) - 0'
1024 $ hg --hidden log -G -r '(0::) - 0'
General Comments 0
You need to be logged in to leave comments. Login now