Skip to content
Snippets Groups Projects
Commit cf9dd81b authored by paul wheeler's avatar paul wheeler
Browse files

util: add missing mercurial.util import

parent ef904bd8
No related branches found
No related tags found
No related merge requests found
"""Compatibility functions for old Mercurial versions and other utility
functions."""
from dulwich import errors
from mercurial import util as hgutil
try:
from collections import OrderedDict
except ImportError:
......@@ -40,5 +41,5 @@
try:
return f(*args, **kwargs)
except errors.NotGitRepository:
raise util.Abort('not a git repository')
raise hgutil.Abort('not a git repository')
return inner
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment