cmdutil: fix typo in revert()
Differential Revision: https://phab.mercurial-scm.org/D4381
log: respect graphshorten on terminal nodes (collapsing o-~ to just o~)
Internally we have a custom template that's inspired by ones that we have seen
in the community. Normally, this looks something like:
o
0834ec17 spectral tip
| crecord: support x to toggle single, X to toggle a range
o
ee932990 spectral @
| filemerge: allow specifying $hgeditor as merge-tools.X.executable
@
66f04611 matt_harbison
| cext: fix truncation warnings in revlog on Windows
o
42cc76d0 matt_harbison
| cext: fix revlog compiler error on Windows
~
o
bd63ada7 stable boris
| phases: drop dead code in `newheads`
~
With graphshorten on, and the descriptions of the public nodes hidden, it looks
like this, note that the commits right before the ~ are still "full height":
o
0834ec17 spectral tip
| crecord: support x to toggle single, X to toggle a range
o
ee932990 spectral @
| filemerge: allow specifying $hgeditor as merge-tools.X.executable
@
66f04611 matt_harbison
o
42cc76d0 matt_harbison
|
~
o
bd63ada7 stable boris
|
~
This patch makes them look like this, removing the | but keeping the ~:
o
0834ec17 spectral tip
| crecord: support x to toggle single, X to toggle a range
o
ee932990 spectral @
| filemerge: allow specifying $hgeditor as merge-tools.X.executable
@
66f04611 matt_harbison
o
42cc76d0 matt_harbison
~
o
bd63ada7 stable boris
~
This originally removed the ~s entirely, but this was determined to be too much
information loss and potentially confusing. This would have looked like the
following (note that the last commit is on a different branch than all of the
ones above it, and they are *not* linearly related):
o
0834ec17 spectral tip
| crecord: support x to toggle single, X to toggle a range
o
ee932990 spectral @
| filemerge: allow specifying $hgeditor as merge-tools.X.executable
@
66f04611 matt_harbison
o
42cc76d0 matt_harbison
o
bd63ada7 stable boris
Differential Revision: https://phab.mercurial-scm.org/D4363
filemerge: fix the wrong placements of messages in prompt
Mistakenly, the local-changed-other-deleted-message was put in
other-change-local-deleted and vice versa. This followups on D4336.
Thanks to Yuya who spotted this.
Differential Revision: https://phab.mercurial-scm.org/D4375
filemerge: print the filename in quotes in prompt
This is better as the filename is in quotes and user can understand better what
the filename is and what is important part in the prompt.
Differential Revision: https://phab.mercurial-scm.org/D4373
filelog: remove proxies to revlog
These proxy attributes and methods were added to facilitate various
debug* and perf* commands. Now that cmdutil.openrevlog() returns
an actual revlog, we no longer need these on the filelog class.
There's probably a few other attributes that could be removed. But
this feels like a worthy start.
Differential Revision: https://phab.mercurial-scm.org/D4359
debugcommands: introduce debugrevlogindex (BC)
`hg debugindex` was originally invented for displaying revlog index
data and is highly tailored towards that. e.g. it accepts a --format
option to display index data for a particular revlog version and
displays things like offset and length.
As we support non-revlog storage, it makes sense for `hg debugindex`
to display generic index data and for there to exist storage-specific
or storage-aware debug* commands for dumping non-generic index data.
This commit effectively renames `hg debugindex` to
`hg debugrevlogindex` and replaces `hg debugindex` with a version that
is storage agnostic.
Tests using --format have been updated to use `hg debugrevlogindex`.
Output is backwards compatible. The replacement command uses the
formatter, which means output can be templatized.
At some point, we may want to tweak output (e.g. to add the revision
size). But I don't feel like taking a bigger BC break at the moment.
The renamed command/function had to be moved because check-code
enforces alphabetical ordering of commands in this file.
Differential Revision: https://phab.mercurial-scm.org/D4358
debugcommands: use openstorage() in debugdata (BC)
Nothing we're doing here requires a revlog. So use openstorage().
.. bc::
`hg debugdata` no longer accepts the path to a revlog file.
Differential Revision: https://phab.mercurial-scm.org/D4357