Mercurial > dotfiles
comparison install.py @ 515:6d5e2a583502 default tip
Remove onsub extension
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 10 May 2022 09:54:59 -0700 |
parents | fc35cae2fb52 |
children |
comparison
equal
deleted
inserted
replaced
514:fc35cae2fb52 | 515:6d5e2a583502 |
---|---|
217 'ignore = %s' % _p('hgrc/hgignore'), | 217 'ignore = %s' % _p('hgrc/hgignore'), |
218 '[subrepos]', | 218 '[subrepos]', |
219 'git:allowed = true', | 219 'git:allowed = true', |
220 '[extensions]', | 220 '[extensions]', |
221 'hggit = %s' % _p('lib/hg/hg-git/hggit/'), | 221 'hggit = %s' % _p('lib/hg/hg-git/hggit/'), |
222 'onsub = %s' % _p('lib/hg/onsub/onsub.py'), | |
223 'allpaths = %s' % _p('lib/hg/mercurial-all_paths/mercurial_all_paths.py'), | 222 'allpaths = %s' % _p('lib/hg/mercurial-all_paths/mercurial_all_paths.py'), |
224 'prompt = %s' % _p('lib/hg/hg-prompt/prompt.py'), | 223 'prompt = %s' % _p('lib/hg/hg-prompt/prompt.py'), |
225 'evolve = %s' % _p('lib/hg/evolve/hgext3rd/evolve'), | 224 'evolve = %s' % _p('lib/hg/evolve/hgext3rd/evolve'), |
226 '[alias]', | 225 '[alias]', |
227 ('dlog = log --pager=yes --style=%s' % | 226 ('dlog = log --pager=yes --style=%s' % |
355 def clone_git(url, path, force=False): | 354 def clone_git(url, path, force=False): |
356 m = re_git_url_prefix.match(url) | 355 m = re_git_url_prefix.match(url) |
357 if not m: | 356 if not m: |
358 raise Exception("Not a git url: %s" % url) | 357 raise Exception("Not a git url: %s" % url) |
359 url, branch = m.group('url'), (m.group('branch') or 'master') | 358 url, branch = m.group('url'), (m.group('branch') or 'master') |
360 | 359 |
361 if _is_non_empty_dir_with(path, '.git'): | 360 if _is_non_empty_dir_with(path, '.git'): |
362 if not force: | 361 if not force: |
363 print("git pull origin %s %s" % (branch, path)) | 362 print("git pull origin %s %s" % (branch, path)) |
364 subprocess.check_call(['git', 'pull', 'origin', branch], | 363 subprocess.check_call(['git', 'pull', 'origin', branch], |
365 cwd=path) | 364 cwd=path) |