Mercurial > hg
comparison tests/test-blackbox.t @ 34298:25e1a8876cc0
tests: add a test for blackbox with nested alias configurations
I've observed some weirdness around this, and needed to rule some
things out. There aren't any bugs in core around this, but it was nice
to have confirmation.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 11 Sep 2017 20:07:41 -0400 |
parents | 7f02fb920121 |
children | b1d4ac068961 |
comparison
equal
deleted
inserted
replaced
34297:7f02fb920121 | 34298:25e1a8876cc0 |
---|---|
4 > blackbox= | 4 > blackbox= |
5 > mock=$TESTDIR/mockblackbox.py | 5 > mock=$TESTDIR/mockblackbox.py |
6 > mq= | 6 > mq= |
7 > [alias] | 7 > [alias] |
8 > confuse = log --limit 3 | 8 > confuse = log --limit 3 |
9 > so-confusing = confuse --style compact | |
9 > EOF | 10 > EOF |
10 $ hg init blackboxtest | 11 $ hg init blackboxtest |
11 $ cd blackboxtest | 12 $ cd blackboxtest |
12 | 13 |
13 command, exit codes, and duration | 14 command, exit codes, and duration |
25 $ hg confuse | 26 $ hg confuse |
26 $ hg blackbox | 27 $ hg blackbox |
27 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse | 28 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse |
28 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'confuse' expands to 'log --limit 3' | 29 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'confuse' expands to 'log --limit 3' |
29 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse exited 0 after * seconds (glob) | 30 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse exited 0 after * seconds (glob) |
31 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox | |
32 | |
33 recursive aliases work correctly | |
34 $ rm ./.hg/blackbox.log | |
35 $ hg so-confusing | |
36 $ hg blackbox | |
37 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> so-confusing | |
38 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'so-confusing' expands to 'confuse --style compact' | |
39 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'confuse' expands to 'log --limit 3' | |
40 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> so-confusing exited 0 after * seconds (glob) | |
30 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox | 41 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox |
31 | 42 |
32 incoming change tracking | 43 incoming change tracking |
33 | 44 |
34 create two heads to verify that we only see one change in the log later | 45 create two heads to verify that we only see one change in the log later |