Mercurial > dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
445:05ab0353cd6e | 446:edefbb8ea16a |
---|---|
177 'prompt = %s' % _p('lib/hg/hg-prompt/prompt.py'), | 177 'prompt = %s' % _p('lib/hg/hg-prompt/prompt.py'), |
178 'evolve = %s' % _p('lib/hg/mutable-history/hgext3rd/evolve'), | 178 'evolve = %s' % _p('lib/hg/mutable-history/hgext3rd/evolve'), |
179 'terse-status = %s' % _p('lib/hg/terse-status/terse-status.py'), | 179 'terse-status = %s' % _p('lib/hg/terse-status/terse-status.py'), |
180 '[alias]', | 180 '[alias]', |
181 ('dlog = log --pager=yes --style=%s' % | 181 ('dlog = log --pager=yes --style=%s' % |
182 _p('lib/hg/mercurial-cli-templates/map-cmdline.dlog', force_unix=True)), | 182 _p('lib/hg/mercurial-cli-templates/map-cmdline.dlog', |
183 force_unix=True)), | |
183 ('slog = log --pager=yes --style=%s' % | 184 ('slog = log --pager=yes --style=%s' % |
184 _p('lib/hg/mercurial-cli-templates/map-cmdline.slog', force_unix=True)), | 185 _p('lib/hg/mercurial-cli-templates/map-cmdline.slog', |
186 force_unix=True)), | |
185 ('nlog = log --pager=yes --style=%s' % | 187 ('nlog = log --pager=yes --style=%s' % |
186 _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', force_unix=True)), | 188 _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', |
189 force_unix=True)), | |
187 ('sglog = glog --pager=yes --style=%s' % | 190 ('sglog = glog --pager=yes --style=%s' % |
188 _p('lib/hg/mercurial-cli-templates/map-cmdline.sglog', force_unix=True)), | 191 _p('lib/hg/mercurial-cli-templates/map-cmdline.sglog', |
189 ('nglog = log --pager=yes -G --style=%s' % | 192 force_unix=True)), |
190 _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', force_unix=True)), | 193 ('nglog = glog --pager=yes --style=%s' % |
191 'wip = glog --pager=yes --style=$DOTFILESPATH/hgrc/wip.style --rev wip' | 194 _p('lib/hg/mercurial-cli-templates/map-cmdline.nlog', |
195 force_unix=True)), | |
196 ('blog = glog --page=yes --style=%s' % | |
197 _p('hgrc/logstyles')), | |
198 ('wip = glog --pager=yes --style=%s --rev wip' % | |
199 _p('hgrc/wip.style', force_unix=True)) | |
192 ]) | 200 ]) |
193 if is_nix: | 201 if is_nix: |
194 print("Building fast-hg-prompt...") | 202 print("Building fast-hg-prompt...") |
195 compile_ok = True | 203 compile_ok = True |
196 try: | 204 try: |
245 if not os.access(path, os.W_OK): | 253 if not os.access(path, os.W_OK): |
246 os.chmod(path, stat.S_IWUSR) | 254 os.chmod(path, stat.S_IWUSR) |
247 func(path) | 255 func(path) |
248 else: | 256 else: |
249 raise | 257 raise |
250 | 258 |
251 | 259 |
252 def _is_non_empty_dir_with(path, contains=None): | 260 def _is_non_empty_dir_with(path, contains=None): |
253 if not os.path.isdir(path): | 261 if not os.path.isdir(path): |
254 return False | 262 return False |
255 if isinstance(contains, str): | 263 if isinstance(contains, str): |
256 contains = [contains] | 264 contains = [contains] |