Show More
@@ -172,8 +172,6 b' def share(ui, source, dest=None, update=' | |||||
172 |
|
172 | |||
173 | sharedpath = srcrepo.sharedpath # if our source is already sharing |
|
173 | sharedpath = srcrepo.sharedpath # if our source is already sharing | |
174 |
|
174 | |||
175 | root = os.path.realpath(dest) |
|
|||
176 | roothg = os.path.join(root, '.hg') |
|
|||
177 | destwvfs = scmutil.vfs(dest, realpath=True) |
|
175 | destwvfs = scmutil.vfs(dest, realpath=True) | |
178 | destvfs = scmutil.vfs(os.path.join(destwvfs.base, '.hg'), realpath=True) |
|
176 | destvfs = scmutil.vfs(os.path.join(destwvfs.base, '.hg'), realpath=True) | |
179 |
|
177 | |||
@@ -192,8 +190,8 b' def share(ui, source, dest=None, update=' | |||||
192 | raise |
|
190 | raise | |
193 |
|
191 | |||
194 | requirements += 'shared\n' |
|
192 | requirements += 'shared\n' | |
195 |
|
|
193 | destvfs.write('requires', requirements) | |
196 |
|
|
194 | destvfs.write('sharedpath', sharedpath) | |
197 |
|
195 | |||
198 | r = repository(ui, destwvfs.base) |
|
196 | r = repository(ui, destwvfs.base) | |
199 |
|
197 |
General Comments 0
You need to be logged in to leave comments.
Login now