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.
--- a/tests/test-blackbox.t Mon Sep 11 20:06:52 2017 -0400
+++ b/tests/test-blackbox.t Mon Sep 11 20:07:41 2017 -0400
@@ -6,6 +6,7 @@
> mq=
> [alias]
> confuse = log --limit 3
+ > so-confusing = confuse --style compact
> EOF
$ hg init blackboxtest
$ cd blackboxtest
@@ -29,6 +30,16 @@
1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> confuse exited 0 after * seconds (glob)
1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox
+recursive aliases work correctly
+ $ rm ./.hg/blackbox.log
+ $ hg so-confusing
+ $ hg blackbox
+ 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> so-confusing
+ 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'so-confusing' expands to 'confuse --style compact'
+ 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> alias 'confuse' expands to 'log --limit 3'
+ 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> so-confusing exited 0 after * seconds (glob)
+ 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox
+
incoming change tracking
create two heads to verify that we only see one change in the log later