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

git2hg.find_incoming: drop unnecessary if statement

parent 77416ddc
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,11 @@
# get a list of all the head shas
seenheads = set()
if refs:
for sha in refs.itervalues():
# refs contains all the refs in the server, not just the ones
# we are pulling
if sha in git_object_store:
for sha in refs.itervalues():
# refs contains all the refs in the server, not just the ones
# we are pulling
if sha in git_object_store:
obj = git_object_store[sha]
while isinstance(obj, Tag):
obj_type, sha = obj.object
obj = git_object_store[sha]
......@@ -24,10 +26,7 @@
obj = git_object_store[sha]
while isinstance(obj, Tag):
obj_type, sha = obj.object
obj = git_object_store[sha]
if isinstance (obj, Commit) and sha not in seenheads:
seenheads.add(sha)
todo.append(sha)
if isinstance (obj, Commit) and sha not in seenheads:
seenheads.add(sha)
todo.append(sha)
# sort by commit date
def commitdate(sha):
......
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