Show More
@@ -174,12 +174,13 b' def share(ui, source, dest=None, update=' | |||
|
174 | 174 | |
|
175 | 175 | root = os.path.realpath(dest) |
|
176 | 176 | roothg = os.path.join(root, '.hg') |
|
177 | destwvfs = scmutil.vfs(dest, realpath=True) | |
|
177 | 178 | |
|
178 | 179 | if os.path.exists(roothg): |
|
179 | 180 | raise util.Abort(_('destination already exists')) |
|
180 | 181 | |
|
181 |
if not |
|
|
182 |
|
|
|
182 | if not destwvfs.isdir(): | |
|
183 | destwvfs.mkdir() | |
|
183 | 184 | util.makedir(roothg, notindexed=True) |
|
184 | 185 | |
|
185 | 186 | requirements = '' |
@@ -193,7 +194,7 b' def share(ui, source, dest=None, update=' | |||
|
193 | 194 | util.writefile(os.path.join(roothg, 'requires'), requirements) |
|
194 | 195 | util.writefile(os.path.join(roothg, 'sharedpath'), sharedpath) |
|
195 | 196 | |
|
196 |
r = repository(ui, |
|
|
197 | r = repository(ui, destwvfs.base) | |
|
197 | 198 | |
|
198 | 199 | default = srcrepo.ui.config('paths', 'default') |
|
199 | 200 | if default: |
General Comments 0
You need to be logged in to leave comments.
Login now