changeset 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
files hggit/git_handler.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py	Wed Oct 29 12:30:23 2014 -0700
+++ b/hggit/git_handler.py	Wed Oct 29 13:12:15 2014 -0700
@@ -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^{}']