Mercurial > hg > hg-git
changeset 285:5e5aee9b32d4
git_handler: slight style cleanup
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 24 Feb 2010 21:08:19 -0600 |
parents | 12cfa77a2ab0 |
children | 0661d5721ad7 |
files | hggit/git_handler.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -5,6 +5,7 @@ from dulwich.objects import Blob, Commit, Tag, Tree, parse_timezone from dulwich.pack import create_delta, apply_delta from dulwich.repo import Repo +from dulwich import client from hgext import bookmarks from mercurial.i18n import _ @@ -819,8 +820,9 @@ return string.decode('ascii', 'replace').encode('utf-8') def get_transport_and_path(self, uri): - from dulwich.client import TCPGitClient, SSHGitClient, SubprocessGitClient - for handler, transport in (("git://", TCPGitClient), ("git@", SSHGitClient), ("git+ssh://", SSHGitClient)): + for handler, transport in (("git://", client.TCPGitClient), + ("git@", client.SSHGitClient), + ("git+ssh://", client.SSHGitClient)): if uri.startswith(handler): # We need to split around : or /, whatever comes first hostpath = uri[len(handler):]