##// END OF EJS Templates
share: move magic string to a constant
Martijn Pieters -
r29424:f21e0d91 default
parent child Browse files
Show More
@@ -135,7 +135,7 b' def _hassharedbookmarks(repo):'
135 if inst.errno != errno.ENOENT:
135 if inst.errno != errno.ENOENT:
136 raise
136 raise
137 return False
137 return False
138 return 'bookmarks' in shared
138 return hg.sharedbookmarks in shared
139
139
140 def _getsrcrepo(repo):
140 def _getsrcrepo(repo):
141 """
141 """
@@ -44,6 +44,9 b' from . import ('
44
44
45 release = lock.release
45 release = lock.release
46
46
47 # shared features
48 sharedbookmarks = 'bookmarks'
49
47 def _local(path):
50 def _local(path):
48 path = util.expandpath(util.urllocalpath(path))
51 path = util.expandpath(util.urllocalpath(path))
49 return (os.path.isfile(path) and bundlerepo or localrepo)
52 return (os.path.isfile(path) and bundlerepo or localrepo)
@@ -258,7 +261,7 b' def postshare(sourcerepo, destrepo, book'
258
261
259 if bookmarks:
262 if bookmarks:
260 fp = destrepo.vfs('shared', 'w')
263 fp = destrepo.vfs('shared', 'w')
261 fp.write('bookmarks\n')
264 fp.write(sharedbookmarks + '\n')
262 fp.close()
265 fp.close()
263
266
264 def _postshareupdate(repo, update, checkout=None):
267 def _postshareupdate(repo, update, checkout=None):
General Comments 0
You need to be logged in to leave comments. Login now