Mercurial > hg > hg-git
changeset 61:65c961d0d232
don't need to fake out hg with `capabilities` anymore
author | Chris Wanstrath <chris@ozmm.org> |
---|---|
date | Wed, 29 Apr 2009 00:56:24 -0700 |
parents | 05a96f7750ad |
children | 52d45a331c92 |
files | gitrepo.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gitrepo.py +++ b/gitrepo.py @@ -2,9 +2,7 @@ from git_handler import GitHandler class gitrepo(repo.repository): - capabilities = [] - - def __init__(self, ui, path, create=1): + def __init__(self, ui, path, create=True): dest = hg.defaultdest(path) if dest.endswith('.git'): @@ -22,6 +20,7 @@ node = git.remote_head('origin') hg.update(dest_repo, node) + # exit to stop normal `hg clone` flow raise SystemExit instance = gitrepo