Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/sshserver.py @ 2621:5a5852a417b1
clone: disable stream support on server side by default.
enable in hgrc like this:
[server]
stream=True
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sat, 15 Jul 2006 16:06:35 -0700 |
parents | ffb895f16925 |
children | 064aef9162cc |
comparison
equal
deleted
inserted
replaced
2620:de82749d3a71 | 2621:5a5852a417b1 |
---|---|
58 consists of a line in the form: | 58 consists of a line in the form: |
59 | 59 |
60 capabilities: space separated list of tokens | 60 capabilities: space separated list of tokens |
61 ''' | 61 ''' |
62 | 62 |
63 r = "capabilities: unbundle stream=%d\n" % (self.repo.revlogversion,) | 63 caps = ['unbundle'] |
64 self.respond(r) | 64 if self.ui.configbool('server', 'stream'): |
65 caps.append('stream=%d' % self.repo.revlogversion) | |
66 self.respond("capabilities: %s\n" % (' '.join(caps),)) | |
65 | 67 |
66 def do_lock(self): | 68 def do_lock(self): |
67 '''DEPRECATED - allowing remote client to lock repo is not safe''' | 69 '''DEPRECATED - allowing remote client to lock repo is not safe''' |
68 | 70 |
69 self.lock = self.repo.lock() | 71 self.lock = self.repo.lock() |