Mercurial > hg > hg-git
view hggit/gitrepo.py @ 254:07c7697e2aaa
Added tag 0.1.0 for changeset 505d7cdca198
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 17 Oct 2009 20:12:19 -0400 |
parents | 505d7cdca198 |
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