Mercurial > hg-stable
comparison mercurial/streamclone.py @ 33226:b045344fe35e
configitems: register the 'server.uncompressedallowsecret' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:44:14 +0200 |
parents | 33b7283a3828 |
children | 15e9cbe6ae49 |
comparison
equal
deleted
inserted
replaced
33225:90a1b62bdc91 | 33226:b045344fe35e |
---|---|
170 | 170 |
171 # The way stream clone works makes it impossible to hide secret changesets. | 171 # The way stream clone works makes it impossible to hide secret changesets. |
172 # So don't allow this by default. | 172 # So don't allow this by default. |
173 secret = phases.hassecret(repo) | 173 secret = phases.hassecret(repo) |
174 if secret: | 174 if secret: |
175 return repo.ui.configbool('server', 'uncompressedallowsecret', False) | 175 return repo.ui.configbool('server', 'uncompressedallowsecret') |
176 | 176 |
177 return True | 177 return True |
178 | 178 |
179 # This is it's own function so extensions can override it. | 179 # This is it's own function so extensions can override it. |
180 def _walkstreamfiles(repo): | 180 def _walkstreamfiles(repo): |