diff install.py @ 436:8986ec3a9c1c

Properly use the Mercurial log templates.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 15 Apr 2018 20:32:59 -0700
parents 06a551d3fbb2
children 21dd55ac743c
line wrap: on
line diff
--- 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...")