Show More
@@ -38,9 +38,9 b' def relink(ui, repo, origin=None, **opts' | |||||
38 | """ |
|
38 | """ | |
39 | if not hasattr(util, 'samefile') or not hasattr(util, 'samedevice'): |
|
39 | if not hasattr(util, 'samefile') or not hasattr(util, 'samedevice'): | |
40 | raise util.Abort(_('hardlinks are not supported on this system')) |
|
40 | raise util.Abort(_('hardlinks are not supported on this system')) | |
41 | src = hg.repository( |
|
41 | src = hg.repository(hg.remoteui(repo, opts), | |
42 | hg.remoteui(repo, opts), |
|
42 | ui.expandpath(origin or 'default-relink', | |
43 | ui.expandpath(origin or 'default-relink', origin or 'default')) |
|
43 | origin or 'default')) | |
44 | if not src.local(): |
|
44 | if not src.local(): | |
45 | raise util.Abort(_('must specify local origin repository')) |
|
45 | raise util.Abort(_('must specify local origin repository')) | |
46 | ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path)) |
|
46 | ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path)) |
General Comments 0
You need to be logged in to leave comments.
Login now