Show More
@@ -165,9 +165,10 b' def _mergeentriesiter(*iterables, **kwar' | |||||
165 |
|
165 | |||
166 | def wrappostshare(orig, sourcerepo, destrepo, **kwargs): |
|
166 | def wrappostshare(orig, sourcerepo, destrepo, **kwargs): | |
167 | """Mark this shared working copy as sharing journal information""" |
|
167 | """Mark this shared working copy as sharing journal information""" | |
168 | orig(sourcerepo, destrepo, **kwargs) |
|
168 | with destrepo.wlock(): | |
169 | with destrepo.vfs('shared', 'a') as fp: |
|
169 | orig(sourcerepo, destrepo, **kwargs) | |
170 | fp.write('journal\n') |
|
170 | with destrepo.vfs('shared', 'a') as fp: | |
|
171 | fp.write('journal\n') | |||
171 |
|
172 | |||
172 | def unsharejournal(orig, ui, repo, repopath): |
|
173 | def unsharejournal(orig, ui, repo, repopath): | |
173 | """Copy shared journal entries into this repo when unsharing""" |
|
174 | """Copy shared journal entries into this repo when unsharing""" |
General Comments 0
You need to be logged in to leave comments.
Login now