# HG changeset patch # User Augie Fackler # Date 2017-09-12 00:07:41 # Node ID 25e1a8876cc0e12cf9a4bb270587ae5dbc289117 # Parent 7f02fb920121f09ba8869d2d1119c004e48b6d1c 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. diff --git a/tests/test-blackbox.t b/tests/test-blackbox.t --- a/tests/test-blackbox.t +++ b/tests/test-blackbox.t @@ -6,6 +6,7 @@ setup > mq= > [alias] > confuse = log --limit 3 + > so-confusing = confuse --style compact > EOF $ hg init blackboxtest $ cd blackboxtest @@ -29,6 +30,16 @@ alias expansion is logged 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