equal
deleted
inserted
replaced
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. |