comparison relnotes/next @ 42309:604c086ddde6

log: add config for making `hg log -G` always topo-sorted I (and everyone else at Google) have an log alias that adds graph mode and templating. I have another one that builds on the first and also restricts the set of revisions to only show those I'm most likely to care about. This second alias also adds topological sorting. I still sometimes use the first one. When I do, it very often bothers me that it's not topologically sorted (branches are interleaved). This patch adds a config option for always using topological sorting with graph log. The revision set is sorted eagerly, which seems like a bad idea, but it doesn't seem to make a big difference in the hg repo (150ms). I initially tried to instead wrap the user's revset in sort(...,topo), but that seemed much harder. Differential Revision: https://phab.mercurial-scm.org/D6331
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 01 May 2019 09:34:47 -0700
parents 0ed293a3f00e
children bcb1a2b6cd00
comparison
equal deleted inserted replaced
42308:1ce46f0ee218 42309:604c086ddde6
1 == New Features == 1 == New Features ==
2 2
3 * New config `commands.commit.post-status` shows status after successful 3 * New config `commands.commit.post-status` shows status after successful
4 commit. 4 commit.
5
6
7 == New Experimental Features ==
8
9 * New config `experimental.log.topo` makes `hg log -G` use
10 topological sorting. This is especially useful for aliases since it
11 lets the alias accept an `-r` option while still using topological
12 sorting with or without the `-r` (unlike if you use the `sort(...,
13 topo)` revset).
14
5 15
6 == Bug Fixes == 16 == Bug Fixes ==
7 17
8 18
9 == Backwards Compatibility Changes == 19 == Backwards Compatibility Changes ==