hgext/share.py
changeset 23666 965788d9ae09
parent 23626 012a7b482d68
child 23883 7e71898a7cdc
equal deleted inserted replaced
23665:a90499a6ad8d 23666:965788d9ae09
    44     """convert a shared repository to a normal one
    44     """convert a shared repository to a normal one
    45 
    45 
    46     Copy the store data to the repo and remove the sharedpath data.
    46     Copy the store data to the repo and remove the sharedpath data.
    47     """
    47     """
    48 
    48 
    49     if repo.sharedpath == repo.path:
    49     if not repo.shared():
    50         raise util.Abort(_("this is not a shared repo"))
    50         raise util.Abort(_("this is not a shared repo"))
    51 
    51 
    52     destlock = lock = None
    52     destlock = lock = None
    53     lock = repo.lock()
    53     lock = repo.lock()
    54     try:
    54     try: