Mercurial > public > mercurial-scm > hg
diff mercurial/hg.py @ 45386:034d94f8761b
requirements: introduce constants for `shared` and `relshared` requirements
We add them to `WORKING_DIR_REQUIREMENTS` too as they should be stored in
`.hg/requires` and have information about the type of working copy.
Differential Revision: https://phab.mercurial-scm.org/D8926
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 11 Aug 2020 13:43:43 +0530 |
parents | 77b8588dd84e |
children | b71858b42963 |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Aug 10 15:47:21 2020 +0530 +++ b/mercurial/hg.py Tue Aug 11 13:43:43 2020 +0530 @@ -354,8 +354,8 @@ sharefile = repo.vfs.join(b'sharedpath') util.rename(sharefile, sharefile + b'.old') - repo.requirements.discard(b'shared') - repo.requirements.discard(b'relshared') + repo.requirements.discard(requirements.SHARED_REQUIREMENT) + repo.requirements.discard(requirements.RELATIVE_SHARED_REQUIREMENT) scmutil.writereporequirements(repo) # Removing share changes some fundamental properties of the repo instance.