Show More
@@ -175,13 +175,14 b' def share(ui, source, dest=None, update=' | |||
|
175 | 175 | root = os.path.realpath(dest) |
|
176 | 176 | roothg = os.path.join(root, '.hg') |
|
177 | 177 | destwvfs = scmutil.vfs(dest, realpath=True) |
|
178 | destvfs = scmutil.vfs(os.path.join(destwvfs.base, '.hg'), realpath=True) | |
|
178 | 179 | |
|
179 |
if |
|
|
180 | if destvfs.lexists(): | |
|
180 | 181 | raise util.Abort(_('destination already exists')) |
|
181 | 182 | |
|
182 | 183 | if not destwvfs.isdir(): |
|
183 | 184 | destwvfs.mkdir() |
|
184 | util.makedir(roothg, notindexed=True) | |
|
185 | destvfs.makedir() | |
|
185 | 186 | |
|
186 | 187 | requirements = '' |
|
187 | 188 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now