Mercurial > hg > hg-git
view hggit/gitrepo.py @ 253:505d7cdca198 0.1.0
package with distutils
(patch tweaked slightly by Augie Fackler)
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Wed, 30 Sep 2009 14:39:49 -0500 |
parents | gitrepo.py@0ba1aee0467c |
children | 6977263c4d80 |
line wrap: on
line source
from mercurial import repo, util from git_handler import GitHandler class gitrepo(repo.repository): capabilities = ['lookup'] def __init__(self, ui, path, create): if create: # pragma: no cover raise util.Abort('Cannot create a git repository.') self.path = path def lookup(self, key): if isinstance(key, str): return key instance = gitrepo