hgext/relink.py
changeset 14556 517e1d88bf7e
parent 14235 b9e1b041744f
child 14709 6c7283faa967
--- 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))