Mercurial > dotfiles
diff install.py @ 446:edefbb8ea16a
Mercurial tweaks.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 21 May 2018 21:59:23 -0700 |
parents | 3d999fcf62c6 |
children | 48933cecdf7f |
line wrap: on
line diff
--- a/install.py Sun May 13 21:41:57 2018 -0700 +++ b/install.py Mon May 21 21:59:23 2018 -0700 @@ -179,16 +179,24 @@ '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', force_unix=True)), + _p('lib/hg/mercurial-cli-templates/map-cmdline.dlog', + force_unix=True)), ('slog = log --pager=yes --style=%s' % - _p('lib/hg/mercurial-cli-templates/map-cmdline.slog', force_unix=True)), + _p('lib/hg/mercurial-cli-templates/map-cmdline.slog', + force_unix=True)), ('nlog = log --pager=yes --style=%s' % - _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', force_unix=True)), + _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', + force_unix=True)), ('sglog = glog --pager=yes --style=%s' % - _p('lib/hg/mercurial-cli-templates/map-cmdline.sglog', force_unix=True)), - ('nglog = log --pager=yes -G --style=%s' % - _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', force_unix=True)), - 'wip = glog --pager=yes --style=$DOTFILESPATH/hgrc/wip.style --rev wip' + _p('lib/hg/mercurial-cli-templates/map-cmdline.sglog', + force_unix=True)), + ('nglog = glog --pager=yes --style=%s' % + _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', + force_unix=True)), + ('blog = glog --page=yes --style=%s' % + _p('hgrc/logstyles')), + ('wip = glog --pager=yes --style=%s --rev wip' % + _p('hgrc/wip.style', force_unix=True)) ]) if is_nix: print("Building fast-hg-prompt...") @@ -247,8 +255,8 @@ func(path) else: raise - - + + def _is_non_empty_dir_with(path, contains=None): if not os.path.isdir(path): return False