Commit Graph

3227 Commits

Author SHA1 Message Date
Pierre-Yves David
a29094b506 color: update main documentation
Now that the feature no longer lives in the extension, we document it in the
help of the core config. This include the new 'ui.color' option introduced in
the previous changesets.

As a result the color extensions can now be deprecated.

This is a documentation patch only; color is still disabled by default.
2017-02-21 20:04:55 +01:00
Pierre-Yves David
b29eb57306 color: add a 'ui.color' option to control color behavior
This new option control whether or not color will be used. It mirror the behavior
of '--color'. I usually avoid adding new option to '[ui]' as the section is
already filled with many option. However, I feel like 'color' is central enough
to deserves a spot in this '[ui]' section.

For now the option is not documented so it is still marked as experimental. Once
it get documented and official, we should be able to deprecate the color
extensions.

There is more cleanup to do before that documentation is written, but we need
this option early to made them. Having that option will allow for more cleanup
of the initialisation process and proper separation between color
configuration.
2017-02-25 19:44:23 +01:00
Pierre-Yves David
e5d5db7cf5 color: add the definition of '--color' in core
If we want to be able to move the initialisation in core, we need core to be
aware of that '--color' flag at all time. So we now have the definition in core. That flag
is currently unprocessed without the extensions (will be fixed soon). In
addition the default value for this flag in core is 'never'. Enabling the
extensions change that default value to 'auto'.
2017-02-21 18:09:21 +01:00
Jun Wu
6faada5b11 serve: mark --stdio and --cmdserver as "(ADVANCED)" flags
This will hide them from the default --help output.
2017-02-22 18:26:12 -08:00
Augie Fackler
01f8d0793b help: move rst formatting of help documents into help.py
This slight refactor will help me improve the 'unknown command'
experience in our new glorious pager future.
2017-02-21 14:17:31 -05:00
Augie Fackler
dfa0dfc344 outgoing: avoid running pager until we're actually showing changes
Consistent with the new behavior of incoming in the previous patch.
2017-02-21 11:06:02 -05:00
Augie Fackler
4aaf8fb8de incoming: delay pager activation until right before printing changes
This prevents authentication and other brief status messages from
being paged.
2017-02-21 10:53:13 -05:00
Augie Fackler
2370f84a66 version: enable pager if --verbose is specified
`hg version` output is very short without --verbose, but with
--verbose it tends to scroll off the user's screen.
2017-02-06 23:08:49 -05:00
Augie Fackler
fde1794204 tags: enable pager 2017-02-06 23:07:16 -05:00
Augie Fackler
c5a4c5d201 summary: enable pager 2017-02-06 23:06:59 -05:00
Augie Fackler
2d27058975 status: enable pager 2017-02-06 23:06:32 -05:00
Augie Fackler
209ab0d249 resolve: enable pager 2017-02-06 23:06:10 -05:00
Augie Fackler
985790e307 paths: enable pager 2017-02-06 23:06:01 -05:00
Augie Fackler
7b68f2b1da outgoing: enable pager
The structure here is similar to incoming, and requires similar treatment.
2017-02-06 23:04:44 -05:00
Augie Fackler
9d43fd6ddc manifest: enable pager 2017-02-06 23:04:26 -05:00
Augie Fackler
01454df49d locate: enable pager 2017-02-06 23:04:10 -05:00
Augie Fackler
9db50905cf incoming: enable pager
The design of incoming means we have to activate the pager in several
places, depending on which codepath gets chosen.
2017-02-06 23:03:48 -05:00
Augie Fackler
046fd9f790 help: enable pager 2017-02-06 23:09:21 -05:00
Augie Fackler
d2ebbe816e grep: enable pager 2017-02-06 23:09:15 -05:00
Augie Fackler
8163007f6e files: enable pager 2017-02-06 23:02:48 -05:00
Augie Fackler
bc44ae0cf0 config: activate pager if not starting an editor
This demonstrates the power of the non-attend-based pager API.
2017-02-06 23:01:42 -05:00
Augie Fackler
31938f0650 log: migrate to modern pager API 2017-02-06 22:59:25 -05:00
Augie Fackler
776882e795 export: migrate to modern pager API 2017-02-06 22:58:54 -05:00
Augie Fackler
a057b6046c diff: migrate to modern pager API 2017-02-06 22:58:26 -05:00
Augie Fackler
4452f8a320 cat: migrate to modern pager API 2017-02-06 22:57:52 -05:00
Augie Fackler
7488e11fe2 annotate: start pager after we're sure we wont abort
This avoids needlessly putting a short error message into the pager.
2017-02-19 15:09:41 -05:00
Yuya Nishihara
b2229f5117 revset: split language services to revsetlang module (API)
New revsetlang module hosts parser, tokenizer, and miscellaneous functions
working on parsed tree. It does not include functions for evaluation such as
getset() and match().

  2288 mercurial/revset.py
   684 mercurial/revsetlang.py
  2972 total

get*() functions are aliased since they are common in revset.py.
2017-02-19 18:19:33 +09:00
Yuya Nishihara
f5002345c5 help: add pointer how to narrow list of resolved/unresolved files (issue5469) 2017-02-18 18:00:01 +09:00
Augie Fackler
c7eae9f3c3 annotate: migrate to modern pager API 2017-02-06 22:52:47 -05:00
Augie Fackler
3967c4ed9b pager: move more behavior into core
This moves the global flag and the --pager=yes logic into core. Only
functionality change is that users now always get a --pager flag and
can enable the pager via the flag without the extension active.

Moving the flag into core exposes a defect in the ro localization,
which will have to be corrected later.
2017-02-15 17:47:57 -05:00
Martin von Zweigbergk
a305f5d310 update: clarify that -C and -c are mutually exclusive
This makes it clear in both the synopsis and in the verbose output
that -C and -c are mutually exclusive. It also restructures the
verbose output a little so it's better prepared for a third option
(--merge).

This patch also reorders the options to match the flag table.
2017-02-13 15:04:46 -08:00
Martin von Zweigbergk
645fe27a5b update: move check for dirty wdir into hg.updatetotally()
The function has a "check" parameter that's currently unused, and it
makes sense to me to have it honor it. That way other callers than
commands.update() could set it if they needed.
2017-02-13 11:58:02 -08:00
Pierre-Yves David
8a9827fe5f debugcommands: move 'debugwireargs' in the new module 2017-02-02 10:07:53 +01:00
Pierre-Yves David
1bbc8f9ef7 debugcommands: move 'debugwalk' in the new module 2017-02-02 10:07:28 +01:00
Pierre-Yves David
68e72c9e9f debugcommands: move 'debugtemplate' in the new module 2017-02-02 10:06:01 +01:00
Pierre-Yves David
5413311102 debugcommands: move 'debugsuccessorssets' in the new module 2017-02-02 10:05:22 +01:00
Pierre-Yves David
eb978b57f3 debugcommands: move 'debugsub' in the new module 2017-02-02 10:04:55 +01:00
Pierre-Yves David
389ca05060 debugcommands: move 'debugstate' in the new module 2017-02-02 10:04:34 +01:00
Pierre-Yves David
1aad61ce3a debugcommands: move 'debugsetparents' in the new module 2017-02-02 10:04:02 +01:00
Pierre-Yves David
05add5088d debugcommands: move 'debugrevspec' in the new module 2017-02-02 10:03:31 +01:00
Pierre-Yves David
45e4019b63 debugcommands: move 'debugrevlog' in the new module 2017-02-02 10:02:40 +01:00
Pierre-Yves David
83109d4530 debugcommands: move 'debugrename' in the new module 2017-02-02 10:01:54 +01:00
Pierre-Yves David
1e95d66c06 debugcommands: move 'debugrebuildfncache' in the new module 2017-02-02 10:01:00 +01:00
Pierre-Yves David
74184e0c1e debugcommands: move 'debugrebuilddirstate' in the new module 2017-02-02 10:00:26 +01:00
Pierre-Yves David
4ce21eab61 debugcommands: move 'debugpvec' in the new module 2017-02-02 09:59:47 +01:00
Pierre-Yves David
76f079037b debugcommands: move 'debugpushkey' in the new module 2017-02-01 17:48:30 +01:00
Pierre-Yves David
b9a9f5a1dd debugcommands: move 'debugpathcomplete' in the new module 2017-02-01 17:47:35 +01:00
Pierre-Yves David
28c82b2cb9 debugcommands: move 'debugobsolete' in the new module 2017-02-01 17:46:21 +01:00
Pierre-Yves David
9303dddfba debugcommands: move 'debuglocks' in the new module 2017-02-01 17:42:49 +01:00
Pierre-Yves David
28987a9a4d debugcommands: move 'debugnamecomplete' in the new module 2017-02-01 17:41:12 +01:00