equal
deleted
inserted
replaced
39 writes.) |
39 writes.) |
40 """ |
40 """ |
41 if (not util.safehasattr(util, 'samefile') or |
41 if (not util.safehasattr(util, 'samefile') or |
42 not util.safehasattr(util, 'samedevice')): |
42 not util.safehasattr(util, 'samedevice')): |
43 raise util.Abort(_('hardlinks are not supported on this system')) |
43 raise util.Abort(_('hardlinks are not supported on this system')) |
44 src = hg.repository(ui, ui.expandpath(origin or 'default-relink', |
44 src = hg.repository(repo.baseui, ui.expandpath(origin or 'default-relink', |
45 origin or 'default')) |
45 origin or 'default')) |
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)) |
47 if repo.root == src.root: |
47 if repo.root == src.root: |
48 ui.status(_('there is nothing to relink\n')) |
48 ui.status(_('there is nothing to relink\n')) |
49 return |
49 return |