Anton Shestakov <av6@dwimlabs.net>, Mon, 16 Sep 2024 00:48:36 +0400
.hgrc: dp1 and dp2 aliases to diff for sanity-checks of merges
An extra alias "d" is needed to make sure `hg d` still works after we add other
commands starting with "d".
`--from` and `--to` are hg 5.7+, they provide clearer UI, but you can still use
`hg diff -r foo -r bar`.
username = Anton Shestakov <av6@dwimlabs.net>
gl = log --pager=always -G
pvr = log --pager=always -pvr
stripout = strip -r 'outgoing()'
crecord = !$HG commit --interactive --config ui.interface=curses "$@"
reword = commit -X 're:' --amend
actualize-topic = rebase -s 'topic($1)' -d 'branch(last(::topic($1) and public()))'
in-release = log -r '$1 + min($1:: and tag())'
dp1 = diff --from 'p1($1)' --to '$1'
dp2 = diff --from 'p2($1)' --to '$1'
format = topic bar number item speed estimate
later-commits-first = true
pager = less -FSRX --ignore-case
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: user: {author}\n{ifeq(p2rev, "-1", "",
}HG: branch '{branch}'\n{if(activebookmark,
"HG: bookmark '{activebookmark}'\n") }{subrepos %
"HG: subrepo {subrepo}\n" }{file_adds %
"HG: added {file}\n" }{file_mods %
"HG: changed {file}\n" }{file_dels %
"HG: removed {file}\n" }{if(files, "",
"HG: no files changed\n")
{splitlines(diff()) % 'HG: {line}\n'}