Mercurial > hg > mercurial-source
diff mercurial/hg.py @ 30185:f21e0d91d386
share: move magic string to a constant
author | Martijn Pieters <mjpieters@fb.com> |
---|---|
date | Fri, 24 Jun 2016 10:32:38 +0100 (2016-06-24) |
parents | 98e8313dcd9e |
children | e417664a3339 |
line wrap: on
line diff
--- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -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):