Hi, The status command lists all untracked files by default. This can be quite expensive (especially when working remotely) when one has, e.g., a build directory full of temporary files. While one can always add these to .hgignore or use -q option, I would like to suggest that the status command only lists top-level directories if there's only untracked files inside, instead of listing there full content. Thanks for considering, Denis
This has been the behaviour for 8 years, and to change it now would cause a lot of breakage in scripts and the like.
(In reply to comment #1) Ok, I understand that changing the default might not acceptable. How about an option (e.g. `hg status --limit`)? Would this be acceptable?
You might want the pager extension.
The feature Denis is talking about is more than just the pager extension. I've seen it in Git, where you get output like this: $ mkdir foo $ touch foo/{a,b,c} $ git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # foo/ nothing added to commit but untracked files present (use "git add" to track) I quite like the output -- normally much more convenient than seeing a full directory tree of untracked files. The feature might not belong in core, but an extension could change the status output to this format (while respecting HGPLAIN).
Fixed by https://mercurial-scm.org/repo/hg/rev/4cd4344a53c4 Pulkit Goyal <7895pulkit@gmail.com> status: add a flag to terse the output (issue4119) This adds an experimental flag -t/--terse which will terse the output. The terse flag will respect other flags which filters the output. The flag takes a string whose value can be a subsequence of "marduic" (the order does not matter here.) Ignored files are not considered while tersing unless -i flag is passed or 'i' is there is the terse flag value. The flag is experimental for testing as there may be cases which will produce strange results with the flag. We can set the terse on by default by simply passing 'u' to the cmdutil.tersestatus(). This patch also adds a test file with tests covering the new feature. (please test the fix)
Bug was set to TESTING for 11 days, resolving