Mercurial > hg > hg-git
changeset 700:a72816ade410
update_remote_branches: don't store refs that don't have an hg equivalent
Same reasoning as previous patch, and same reason why this patch doesn't
include a test.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 04 Mar 2014 14:39:50 -0800 |
parents | 6dc550f2fa78 |
children | e29e280776ff |
files | hggit/git_handler.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -1165,9 +1165,9 @@ store = self.git.object_store for ref_name, sha in refs.iteritems(): if ref_name.startswith('refs/heads'): - if sha not in store: + hgsha = self.map_hg_get(sha) + if hgsha is None or hgsha not in self.repo: continue - hgsha = self.map_hg_get(sha) head = ref_name[11:] tags['/'.join((remote_name, head))] = hgsha # TODO(durin42): what is this doing?