Mercurial > public > mercurial-scm > hg-stable
diff hgext/relink.py @ 14556:517e1d88bf7e
hg: change various repository() users to use peer() where appropriate
This gets all the easy cases (peers that aren't also used as repositories).
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 10 Jun 2011 11:43:38 -0500 |
parents | b9e1b041744f |
children | 6c7283faa967 |
line wrap: on
line diff
--- a/hgext/relink.py Fri Jun 10 11:43:38 2011 -0500 +++ b/hgext/relink.py Fri Jun 10 11:43:38 2011 -0500 @@ -38,9 +38,8 @@ """ if not hasattr(util, 'samefile') or not hasattr(util, 'samedevice'): raise util.Abort(_('hardlinks are not supported on this system')) - src = hg.repository(hg.remoteui(repo, opts), - ui.expandpath(origin or 'default-relink', - origin or 'default')) + src = hg.repository(ui, ui.expandpath(origin or 'default-relink', + origin or 'default')) if not src.local(): raise util.Abort(_('must specify local origin repository')) ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path))