Commit Graph

13 Commits

Author SHA1 Message Date
Bradley M. Kuhn
4cd8c219ba commit: --edit/-e to force edit of otherwise-supplied commit message
The --edit/-e option for the 'commit' command forces editor, even when a
commit message has been provided already by other means, such as by the -m or
-l options.
2013-09-08 19:02:08 -04:00
Matt Mackall
55a0f78973 config: add --global and --local flags
These start an editor on the system-wide or repository-level config files.
2014-03-18 18:49:30 -05:00
Matt Mackall
6b078f60b5 config: add initial implementation of --edit
This launches the preferred editor on either:

a) the first non-empty user rc file found
b) the first user rc file in the search list
2014-02-27 13:46:32 -06:00
Matt Mackall
ae628826e6 config: move showconfig code and add config as primary alias
Preparation for adding config --edit to launch an editor
2014-02-27 12:42:09 -06:00
Siddharth Agarwal
bf7fddd84c commands.debugrevspec: add an option to print the optimized expression tree
This will be used in an upcoming patch to test that the optimizer works.
2014-02-13 13:52:45 -08:00
Sean Farley
5f6b3d5623 pathcomplete: remove ambiguous entries for sole completion on a directory
Previously, directories were added with the trailing slash and, if there was
only one completion, then another ambiguous entry was created using '.', as
follows:

$ hg rm mer<TAB>
mercurial/./  mercurial//

This was added in bc559aff745c (though, some logic existed before that) to work
around bash completion adding a space after the sole entry because we treated
directories and files the same. We no longer do that now so we remove this
unneeded code.

Tests have been updated to match this new behavior.
2013-11-25 12:12:42 -05:00
Matt Mackall
fe7062dd37 tests: update for commit --secret 2013-07-18 16:29:05 -05:00
Mads Kiilerich
b81e3cdb96 debugrebuildstate: rename to debugrebuilddirstate
There is a lot of state, but this command is for rebuilding the dirstate.
2013-04-15 01:41:47 +02:00
Mads Kiilerich
a855980324 debugstate: rename to debugdirstate
There is a lot of state, but this command is for debugging the dirstate.
2013-04-15 01:41:27 +02:00
Bryan O'Sullivan
738dd167db debuglabelcomplete: compute active branch heads correctly
The previous computation was simply wrong.
2013-04-09 09:40:40 -07:00
Bryan O'Sullivan
7b1c9969ac test-completion: test completion of tags 2013-03-21 22:42:51 -07:00
Bryan O'Sullivan
2d86040062 tests: test debugpathcomplete and debuglabelcomplete 2013-03-21 22:26:01 -07:00
Bryan O'Sullivan
5d282d6339 tests: rename test-debugcomplete.t to test-completion.t 2013-03-21 22:22:21 -07:00