Skip to content
Snippets Groups Projects
Commit 367f9e0d authored by Sean Farley's avatar Sean Farley
Browse files

gitrepo: slight refactor to use {} instead of dict()

This makes a following refactor easier to review.
parent 9965a927
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,11 @@
handler = self.localrepo.githandler
refs = handler.fetch_pack(self.path, heads=[])
# map any git shas that exist in hg to hg shas
stripped_refs = dict([
(ref[11:], handler.map_hg_get(refs[ref]) or refs[ref])
for ref in refs.keys() if ref.startswith('refs/heads/')
])
stripped_refs = {
ref[11:]: handler.map_hg_get(val) or val
for ref, val in refs.iteritems()
if ref.startswith('refs/heads/')
}
return stripped_refs
return {}
......
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