mercurial/hg.py
changeset 45386 034d94f8761b
parent 45372 77b8588dd84e
child 45485 b71858b42963
equal deleted inserted replaced
45385:05d19ca33b33 45386:034d94f8761b
   352         with destlock or util.nullcontextmanager():
   352         with destlock or util.nullcontextmanager():
   353 
   353 
   354             sharefile = repo.vfs.join(b'sharedpath')
   354             sharefile = repo.vfs.join(b'sharedpath')
   355             util.rename(sharefile, sharefile + b'.old')
   355             util.rename(sharefile, sharefile + b'.old')
   356 
   356 
   357             repo.requirements.discard(b'shared')
   357             repo.requirements.discard(requirements.SHARED_REQUIREMENT)
   358             repo.requirements.discard(b'relshared')
   358             repo.requirements.discard(requirements.RELATIVE_SHARED_REQUIREMENT)
   359             scmutil.writereporequirements(repo)
   359             scmutil.writereporequirements(repo)
   360 
   360 
   361     # Removing share changes some fundamental properties of the repo instance.
   361     # Removing share changes some fundamental properties of the repo instance.
   362     # So we instantiate a new repo object and operate on it rather than
   362     # So we instantiate a new repo object and operate on it rather than
   363     # try to keep the existing repo usable.
   363     # try to keep the existing repo usable.