hgext/share.py
changeset 42325 526750cdd02d
parent 40293 c303d65d2e34
child 43076 2372284d9457
equal deleted inserted replaced
42319:b162229ebe0d 42325:526750cdd02d
   123     extensions.wrapfunction(bookmarks.bmstore, '_writerepo', writerepo)
   123     extensions.wrapfunction(bookmarks.bmstore, '_writerepo', writerepo)
   124     extensions.wrapcommand(commands.table, 'clone', clone)
   124     extensions.wrapcommand(commands.table, 'clone', clone)
   125 
   125 
   126 def _hassharedbookmarks(repo):
   126 def _hassharedbookmarks(repo):
   127     """Returns whether this repo has shared bookmarks"""
   127     """Returns whether this repo has shared bookmarks"""
       
   128     if bookmarks.bookmarksinstore(repo):
       
   129         # Kind of a lie, but it means that we skip our custom reads and writes
       
   130         # from/to the source repo.
       
   131         return False
   128     try:
   132     try:
   129         shared = repo.vfs.read('shared').splitlines()
   133         shared = repo.vfs.read('shared').splitlines()
   130     except IOError as inst:
   134     except IOError as inst:
   131         if inst.errno != errno.ENOENT:
   135         if inst.errno != errno.ENOENT:
   132             raise
   136             raise