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

gitrepo.listkeys: use githandler from localrepo

Previously we'd load the git and hg maps twice on separate git handler objects.
This avoids that.

For a repo with over 50,000 commits, this brings a no-op hg pull down from 2.45
seconds to 2.37.
parent 1ec6ec6d
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,8 @@
if namespace == 'namespaces':
return {'bookmarks':''}
elif namespace == 'bookmarks':
handler = self._initializehandler()
if handler:
if self.localrepo is not None:
handler = self.localrepo.githandler
handler.export_commits()
refs = handler.fetch_pack(self.path)
reqrefs = refs
......
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