Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/upgrade.py @ 45498:78f0bb37f52d
upgrade: support running upgrade if repository has share-safe requirement
This helps us in testing changing requirements of source repository and checking
that the shared repository works.
Differential Revision: https://phab.mercurial-scm.org/D8660
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 25 Jun 2020 13:16:55 +0530 |
parents | 034d94f8761b |
children | d1c10d33a85c |
comparison
equal
deleted
inserted
replaced
45497:ac7a3da0dbb6 | 45498:78f0bb37f52d |
---|---|
106 b'store', | 106 b'store', |
107 requirements.SPARSEREVLOG_REQUIREMENT, | 107 requirements.SPARSEREVLOG_REQUIREMENT, |
108 requirements.SIDEDATA_REQUIREMENT, | 108 requirements.SIDEDATA_REQUIREMENT, |
109 requirements.COPIESSDC_REQUIREMENT, | 109 requirements.COPIESSDC_REQUIREMENT, |
110 requirements.NODEMAP_REQUIREMENT, | 110 requirements.NODEMAP_REQUIREMENT, |
111 requirements.SHARESAFE_REQUIREMENT, | |
111 } | 112 } |
112 for name in compression.compengines: | 113 for name in compression.compengines: |
113 engine = compression.compengines[name] | 114 engine = compression.compengines[name] |
114 if engine.available() and engine.revlogheader(): | 115 if engine.available() and engine.revlogheader(): |
115 supported.add(b'exp-compression-%s' % name) | 116 supported.add(b'exp-compression-%s' % name) |