Mercurial > hg-git
comparison hggit/git_handler.py @ 814: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 |
parents | 345919960ea4 |
children | 8e5d1e38f089 |
comparison
equal
deleted
inserted
replaced
813:345919960ea4 | 814:6cdeafb8ca46 |
---|---|
958 new_refs = refs.copy() | 958 new_refs = refs.copy() |
959 all_heads = self.local_heads() | 959 all_heads = self.local_heads() |
960 | 960 |
961 #The remote repo is empty and the local one doesn't have bookmarks/tags | 961 #The remote repo is empty and the local one doesn't have bookmarks/tags |
962 if refs.keys()[0] == 'capabilities^{}': | 962 if refs.keys()[0] == 'capabilities^{}': |
963 if not all_heads: | 963 if not exportable: |
964 tip = self.repo.lookup('tip') | 964 tip = self.repo.lookup('tip') |
965 if tip != nullid: | 965 if tip != nullid: |
966 del new_refs['capabilities^{}'] | 966 del new_refs['capabilities^{}'] |
967 tip = hex(tip) | 967 tip = hex(tip) |
968 try: | 968 try: |