Mercurial > dotfiles
changeset 436:8986ec3a9c1c
Properly use the Mercurial log templates.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 15 Apr 2018 20:32:59 -0700 |
parents | b7682004288d |
children | 21dd55ac743c |
files | hgrc/hgrc install.py |
diffstat | 2 files changed, 13 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/hgrc/hgrc Wed Apr 04 20:36:11 2018 -0700 +++ b/hgrc/hgrc Sun Apr 15 20:32:59 2018 -0700 @@ -23,12 +23,7 @@ parentrevspec = [alias] -dlog = log --style=$DOTFILESPATH/lib/hg/mercurial-cli-templates/map-cmdline.dlog -slog = log --limit 10 --style=$DOTFILESPATH/lib/hg/mercurial-cli-templates/map-cmdline.slog -nlog = log --limit 10 --style=$DOTFILESPATH/lib/hg/mercurial-cli-templates/map-cmdline.nlog -sglog = glog --limit 10 --style=$DOTFILESPATH/lib/hg/mercurial-cli-templates/map-cmdline.sglog clog = glog --limit 10 --template "{rev} {branches} {bookmarks} {tags} {node|short} {date|shortdate} {author|user}\n{desc}\n\n" -wip = glog --style=$DOTFILESPATH/hgrc/wip.style --rev wip [revsetalias] wip = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^ and not closed())
--- a/install.py Wed Apr 04 20:36:11 2018 -0700 +++ b/install.py Sun Apr 15 20:32:59 2018 -0700 @@ -176,7 +176,19 @@ 'allpaths = %s' % _p('lib/hg/allpaths/mercurial_all_paths.py'), 'prompt = %s' % _p('lib/hg/hg-prompt/prompt.py'), 'evolve = %s' % _p('lib/hg/mutable-history/hgext3rd/evolve'), - 'terse-status = %s' % _p('lib/hg/terse-status/terse-status.py') + 'terse-status = %s' % _p('lib/hg/terse-status/terse-status.py'), + '[alias]', + ('dlog = log --pager=yes --style=%s' % + _p('lib/hg/mercurial-cli-templates/map-cmdline.dlog')), + ('slog = log --pager=yes --style=%s' % + _p('lib/hg/mercurial-cli-templates/map-cmdline.slog')), + ('nlog = log --pager=yes --style=%s' % + _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog')), + ('sglog = glog --pager=yes --style=%s' % + _p('lib/hg/mercurial-cli-templates/map-cmdline.sglog')), + ('nglog = log --pager=yes -G --style=%s' % + _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog')), + 'wip = glog --pager=yes --style=$DOTFILESPATH/hgrc/wip.style --rev wip' ]) if is_nix: print("Building fast-hg-prompt...")