diff --git a/hggit/git2hg.py b/hggit/git2hg.py index 9a89e9cf41b775c642ae79ab29a165442f4d1777_aGdnaXQvZ2l0MmhnLnB5..ad0bad8a0700535ec6767a2b0a2a5f656611ecd7_aGdnaXQvZ2l0MmhnLnB5 100644 --- a/hggit/git2hg.py +++ b/hggit/git2hg.py @@ -9,7 +9,6 @@ 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 @@ # 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):