# HG changeset patch # User Martijn Pieters # Date 1466760758 -3600 # Node ID f21e0d91d386fd4e81568b7a3888bb47f86e199d # Parent d2c6f3a948fac365acfaa30ea5208ca1d3536426 share: move magic string to a constant diff -r d2c6f3a948fa -r f21e0d91d386 hgext/share.py --- a/hgext/share.py Sat Mar 12 16:08:19 2016 -0800 +++ b/hgext/share.py Fri Jun 24 10:32:38 2016 +0100 @@ -135,7 +135,7 @@ if inst.errno != errno.ENOENT: raise return False - return 'bookmarks' in shared + return hg.sharedbookmarks in shared def _getsrcrepo(repo): """ diff -r d2c6f3a948fa -r f21e0d91d386 mercurial/hg.py --- a/mercurial/hg.py Sat Mar 12 16:08:19 2016 -0800 +++ b/mercurial/hg.py Fri Jun 24 10:32:38 2016 +0100 @@ -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):