Check to make sure dulwich is available and print error

master-GE
Josh 2012-03-06 10:44:48 -05:00
parent ba9eff02a0
commit 5115ce2faf
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ def repositoryWithPath (path):
repo = Repo(path)
result = GitRepository(repo, path)
except ImportError:
print "Failed to import dulwich, please install http://www.samba.org/~jelmer/dulwich/"
except:
from mercurial import ui, hg