hgext/share.py
changeset 23883 7e71898a7cdc
parent 23666 965788d9ae09
child 24364 135b23868f45
--- a/hgext/share.py	Sun Nov 02 02:36:47 2014 +0100
+++ b/hgext/share.py	Sun Jan 11 16:20:15 2015 +0100
@@ -79,12 +79,12 @@
 def _hassharedbookmarks(repo):
     """Returns whether this repo has shared bookmarks"""
     try:
-        repo.vfs.read('bookmarks.shared')
-        return True
+        shared = repo.vfs.read('shared').splitlines()
     except IOError, inst:
         if inst.errno != errno.ENOENT:
             raise
         return False
+    return 'bookmarks' in shared
 
 def _getsrcrepo(repo):
     """