Skip to content
Snippets Groups Projects
Commit f21e0d91 authored by Martijn Pieters's avatar Martijn Pieters
Browse files

share: move magic string to a constant

parent d2c6f3a9
No related merge requests found
......@@ -135,7 +135,7 @@
if inst.errno != errno.ENOENT:
raise
return False
return 'bookmarks' in shared
return hg.sharedbookmarks in shared
def _getsrcrepo(repo):
"""
......
......@@ -44,6 +44,9 @@
release = lock.release
# shared features
sharedbookmarks = 'bookmarks'
def _local(path):
path = util.expandpath(util.urllocalpath(path))
return (os.path.isfile(path) and bundlerepo or localrepo)
......@@ -258,7 +261,7 @@
if bookmarks:
fp = destrepo.vfs('shared', 'w')
fp.write('bookmarks\n')
fp.write(sharedbookmarks + '\n')
fp.close()
def _postshareupdate(repo, update, checkout=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment