equal
deleted
inserted
replaced
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 |