Mercurial > hg > hg-git
diff hggit/git_handler.py @ 815:6cdeafb8ca46
git_handler.get_chanaged_refs: use exportable for no-ref check
The comment was actually incorrect -- we only used to care about bookmarks. Now
we also care about tags.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Wed, 29 Oct 2014 13:12:15 -0700 (2014-10-29) |
parents | 345919960ea4 |
children | 8e5d1e38f089 |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -960,7 +960,7 @@ #The remote repo is empty and the local one doesn't have bookmarks/tags if refs.keys()[0] == 'capabilities^{}': - if not all_heads: + if not exportable: tip = self.repo.lookup('tip') if tip != nullid: del new_refs['capabilities^{}']