equal
deleted
inserted
replaced
257 fp = destrepo.vfs("hgrc", "w", text=True) |
257 fp = destrepo.vfs("hgrc", "w", text=True) |
258 fp.write("[paths]\n") |
258 fp.write("[paths]\n") |
259 fp.write("default = %s\n" % default) |
259 fp.write("default = %s\n" % default) |
260 fp.close() |
260 fp.close() |
261 |
261 |
262 if bookmarks: |
262 with destrepo.wlock(): |
263 fp = destrepo.vfs('shared', 'w') |
263 if bookmarks: |
264 fp.write(sharedbookmarks + '\n') |
264 fp = destrepo.vfs('shared', 'w') |
265 fp.close() |
265 fp.write(sharedbookmarks + '\n') |
|
266 fp.close() |
266 |
267 |
267 def _postshareupdate(repo, update, checkout=None): |
268 def _postshareupdate(repo, update, checkout=None): |
268 """Maybe perform a working directory update after a shared repo is created. |
269 """Maybe perform a working directory update after a shared repo is created. |
269 |
270 |
270 ``update`` can be a boolean or a revision to update to. |
271 ``update`` can be a boolean or a revision to update to. |