hgext/relink.py
changeset 50928 d718eddf01d9
parent 50899 d28cc52e2c0f
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
    58 
    58 
    59     Do not attempt any read operations on this repository while the
    59     Do not attempt any read operations on this repository while the
    60     command is running. (Both repositories will be locked against
    60     command is running. (Both repositories will be locked against
    61     writes.)
    61     writes.)
    62     """
    62     """
    63     if not util.safehasattr(util, 'samefile') or not util.safehasattr(
    63     if not hasattr(util, 'samefile') or not hasattr(util, 'samedevice'):
    64         util, 'samedevice'
       
    65     ):
       
    66         raise error.Abort(_(b'hardlinks are not supported on this system'))
    64         raise error.Abort(_(b'hardlinks are not supported on this system'))
    67 
    65 
    68     if origin is None and b'default-relink' in ui.paths:
    66     if origin is None and b'default-relink' in ui.paths:
    69         origin = b'default-relink'
    67         origin = b'default-relink'
    70     path = urlutil.get_unique_pull_path_obj(b'relink', ui, origin)
    68     path = urlutil.get_unique_pull_path_obj(b'relink', ui, origin)