Mercurial > hg > hg-git
changeset 774:55887ce9fb98
git_handler.update_remote_branches: rename 'tags' to 'remote_refs'
'tags' is a fairly nonsensical name in this context.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 03 Sep 2014 19:47:37 +0200 |
parents | 03e1e9929dea |
children | 9c6bd4102ef5 |
files | hggit/git_handler.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -1258,13 +1258,13 @@ def update_remote_branches(self, remote_name, refs): tagfile = self.repo.join(self.remote_refs_file) - tags = self.remote_refs + remote_refs = self.remote_refs # since we re-write all refs for this remote each time, prune - # all entries matching this remote from our tags list now so + # all entries matching this remote from our refs list now so # that we avoid any stale refs hanging around forever - for t in list(tags): + for t in list(remote_refs): if t.startswith(remote_name + '/'): - del tags[t] + del remote_refs[t] store = self.git.object_store for ref_name, sha in refs.iteritems(): if ref_name.startswith('refs/heads'): @@ -1272,7 +1272,7 @@ if hgsha is None or hgsha not in self.repo: continue head = ref_name[11:] - tags['/'.join((remote_name, head))] = bin(hgsha) + remote_refs['/'.join((remote_name, head))] = bin(hgsha) # TODO(durin42): what is this doing? new_ref = 'refs/remotes/%s/%s' % (remote_name, head) self.git.refs[new_ref] = sha