changeset 26444 | 623743010133 |
parent 26443 | d947086d8973 |
child 26445 | f134fb33c906 |
--- a/mercurial/streamclone.py Fri Oct 02 16:05:52 2015 -0700 +++ b/mercurial/streamclone.py Fri Oct 02 16:24:56 2015 -0700 @@ -17,6 +17,10 @@ util, ) +def allowservergeneration(ui): + """Whether streaming clones are allowed from the server.""" + return ui.configbool('server', 'uncompressed', True, untrusted=True) + # This is it's own function so extensions can override it. def _walkstreamfiles(repo): return repo.store.walk()