# HG changeset patch # User Augie Fackler # Date 1526349764 14400 # Node ID 6acf41bb8d40c55073e846b81c7466f4b0d390dc # Parent 18424aeece7fd23a4adf82f8d6397cf789c0b3ee status: add default of --terse=u to tweakdefaults (BC) This is in line with both Git and Subversion, and strikes me as a more humane behavior. Test output changes are expected once you read test-status.t, and I feel like we've still got adequate coverage on things. Differential Revision: https://phab.mercurial-scm.org/D3628 diff -r 18424aeece7f -r 6acf41bb8d40 mercurial/ui.py --- a/mercurial/ui.py Mon May 14 22:01:27 2018 -0400 +++ b/mercurial/ui.py Mon May 14 22:02:44 2018 -0400 @@ -66,6 +66,8 @@ update.check = noconflict # Show conflicts information in `hg status` status.verbose = True +# Collapse entire directories that contain only unknown files +status.terse = u [diff] git = 1 diff -r 18424aeece7f -r 6acf41bb8d40 tests/test-status.t --- a/tests/test-status.t Mon May 14 22:01:27 2018 -0400 +++ b/tests/test-status.t Mon May 14 22:02:44 2018 -0400 @@ -109,11 +109,8 @@ tweaking defaults works $ hg status --cwd a --config ui.tweakdefaults=yes - ? 1/in_a_1 - ? in_a - ? ../b/1/in_b_1 - ? ../b/2/in_b_2 - ? ../b/in_b + ? . + ? ../b/ ? ../in_root $ HGPLAIN=1 hg status --cwd a --config ui.tweakdefaults=yes ? a/1/in_a_1 (glob) @@ -123,11 +120,8 @@ ? b/in_b (glob) ? in_root $ HGPLAINEXCEPT=tweakdefaults hg status --cwd a --config ui.tweakdefaults=yes - ? 1/in_a_1 (glob) - ? in_a - ? ../b/1/in_b_1 (glob) - ? ../b/2/in_b_2 (glob) - ? ../b/in_b (glob) + ? . + ? ../b/ ? ../in_root (glob) relative paths can be requested @@ -157,11 +151,8 @@ > status.relative = False > EOF $ hg status --cwd a --config ui.tweakdefaults=yes - ? a/1/in_a_1 - ? a/in_a - ? b/1/in_b_1 - ? b/2/in_b_2 - ? b/in_b + ? a/ + ? b/ ? in_root $ cd ..