hgext/relink.py
changeset 18825 f0564402d059
parent 17191 5884812686f7
child 20083 c69e5911888d
--- a/hgext/relink.py	Mon Mar 04 22:34:11 2013 +0000
+++ b/hgext/relink.py	Wed Oct 10 21:55:49 2012 +0200
@@ -41,7 +41,7 @@
     if (not util.safehasattr(util, 'samefile') or
         not util.safehasattr(util, 'samedevice')):
         raise util.Abort(_('hardlinks are not supported on this system'))
-    src = hg.repository(ui, ui.expandpath(origin or 'default-relink',
+    src = hg.repository(repo.baseui, ui.expandpath(origin or 'default-relink',
                                           origin or 'default'))
     ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path))
     if repo.root == src.root: