Skip to content
Snippets Groups Projects
Commit 1ec6ec6d authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

hgrepo.tags: use githandler property

Currently we call hgrepo.tags() separately for each tag. (This should be fixed
at some point.) This avoids initializing a separate git handler for each tag.

For a repository with over 150 tags, this brings down a no-op hg pull by 0.05
seconds.
parent 7302c9e0
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,5 @@
# Mercurial 1.5 and later.
return self._tags
git = GitHandler(self, self.ui)
tagscache = super(hgrepo, self).tags()
tagscache.update(self.gitrefs())
......@@ -74,6 +73,6 @@
tagscache = super(hgrepo, self).tags()
tagscache.update(self.gitrefs())
for tag, rev in git.tags.iteritems():
for tag, rev in self.githandler.tags.iteritems():
if tag in tagscache:
continue
......
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