Skip to content
Browse files

git_handler: fix safehasattr - hg util is hgutil

  • Loading branch information...
1 parent 81793c8 commit 3792f7123073c343712295c507245c78727d79f6 @kiilerix kiilerix committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 hggit/git_handler.py
View
6 hggit/git_handler.py
@@ -597,14 +597,14 @@ def import_git_objects(self, remote_name=None, refs=None):
'name' in self._tags:
# Mercurial 1.5 and later.
del self.repo._tags[name]
- if (util.safehasattr(self.repo, '_tagtypes') and
+ if (hgutil.safehasattr(self.repo, '_tagtypes') and
self.repo._tagtypes and
name in self.repo._tagtypes):
# Mercurial 1.9 and earlier.
del self.repo._tagtypes[name]
- elif (util.safehasattr(self.repo, 'tagscache') and
+ elif (hgutil.safehasattr(self.repo, 'tagscache') and
self.repo.tagscache and
- util.safehasattr(self.repo.tagscache, '_tagtypes') and
+ hgutil.safehasattr(self.repo.tagscache, '_tagtypes') and
self.repo.tagscache._tagtypes and
name in self.repo.tagscache._tagtypes):
# Mercurial 2.0 and later.

0 comments on commit 3792f71

Please sign in to comment.
Something went wrong with that request. Please try again.