Mercurial > hg-git
comparison hggit/util.py @ 1128:6141895a53c9
compat: switch from hgutil.Abort to error.Abort
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Wed, 02 May 2018 20:43:17 -0500 |
parents | 8ed6c0cae9b8 |
children |
comparison
equal
deleted
inserted
replaced
1127:108d9303ef71 | 1128:6141895a53c9 |
---|---|
57 '''use as a decorator around functions that call into dulwich''' | 57 '''use as a decorator around functions that call into dulwich''' |
58 def inner(*args, **kwargs): | 58 def inner(*args, **kwargs): |
59 try: | 59 try: |
60 return f(*args, **kwargs) | 60 return f(*args, **kwargs) |
61 except errors.NotGitRepository: | 61 except errors.NotGitRepository: |
62 raise hgutil.Abort('not a git repository') | 62 raise error.Abort('not a git repository') |
63 return inner | 63 return inner |
64 | 64 |
65 | 65 |
66 def isgitsshuri(uri): | 66 def isgitsshuri(uri): |
67 """Method that returns True if a uri looks like git-style uri | 67 """Method that returns True if a uri looks like git-style uri |