mercurial/streamclone.py
changeset 26444 623743010133
parent 26443 d947086d8973
child 26445 f134fb33c906
equal deleted inserted replaced
26443:d947086d8973 26444:623743010133
    14     branchmap,
    14     branchmap,
    15     error,
    15     error,
    16     store,
    16     store,
    17     util,
    17     util,
    18 )
    18 )
       
    19 
       
    20 def allowservergeneration(ui):
       
    21     """Whether streaming clones are allowed from the server."""
       
    22     return ui.configbool('server', 'uncompressed', True, untrusted=True)
    19 
    23 
    20 # This is it's own function so extensions can override it.
    24 # This is it's own function so extensions can override it.
    21 def _walkstreamfiles(repo):
    25 def _walkstreamfiles(repo):
    22     return repo.store.walk()
    26     return repo.store.walk()
    23 
    27