# HG changeset patch # User Ludovic Chabant # Date 1523849579 25200 # Node ID 8986ec3a9c1c2851e800a5169aa8a46455ea7b59 # Parent b7682004288d152090089cbb814ecea2b0d63814 Properly use the Mercurial log templates. diff -r b7682004288d -r 8986ec3a9c1c hgrc/hgrc --- 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()) diff -r b7682004288d -r 8986ec3a9c1c install.py --- 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...")