mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
git2hg.find_incoming: drop a comment and clarify another
The removed comment is irrelevant, and the second one confused me for a while.
This commit is contained in:
parent
759a84820e
commit
33da556b19
@ -9,7 +9,6 @@ def find_incoming(git_object_store, git_map, refs):
|
||||
git_map is a map with keys being Git commits that have already been imported
|
||||
refs is a map of refs to SHAs that we're interested in.'''
|
||||
|
||||
# import heads and fetched tags as remote references
|
||||
todo = []
|
||||
done = set()
|
||||
commit_cache = {}
|
||||
@ -17,8 +16,8 @@ def find_incoming(git_object_store, git_map, refs):
|
||||
# get a list of all the head shas
|
||||
seenheads = set()
|
||||
for sha in refs.itervalues():
|
||||
# refs contains all the refs in the server, not just the ones
|
||||
# we are pulling
|
||||
# refs could contain refs on the server that we haven't pulled down the
|
||||
# objects for
|
||||
if sha in git_object_store:
|
||||
obj = git_object_store[sha]
|
||||
while isinstance(obj, Tag):
|
||||
|
Loading…
Reference in New Issue
Block a user