diff -r e2c413bde8a5 -r 11aad09a6370 hgext/relink.py --- a/hgext/relink.py Mon Jul 25 15:30:19 2011 -0500 +++ b/hgext/relink.py Mon Jul 25 20:37:12 2011 -0500 @@ -36,7 +36,8 @@ command is running. (Both repositories will be locked against writes.) """ - if not hasattr(util, 'samefile') or not hasattr(util, 'samedevice'): + 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', origin or 'default'))