Mercurial > hg > hg-git
changeset 461:de618e24dcdd
gitrepo: cope with module/class renames in hg 2.3
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 18 Jul 2012 13:16:43 -0700 |
parents | 5861777f2f5e |
children | 406ed78809b2 |
files | hggit/gitrepo.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/gitrepo.py +++ b/hggit/gitrepo.py @@ -1,12 +1,17 @@ -from mercurial import repo, util +from mercurial import util try: from mercurial.error import RepoError except ImportError: from mercurial.repo import RepoError +try: + from mercurial.peer import PeerRepository +except ImportError: + from mercurial.repo import Repository as PeerRepository + from git_handler import GitHandler -class gitrepo(repo.repository): +class gitrepo(PeerRepository): capabilities = ['lookup'] def __init__(self, ui, path, create):