Mercurial > hg-stable
changeset 14706:5fd5dd9a610a stable
cmdserver: don't raise EOFError when trying to read 0 bytes from the client
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Tue, 21 Jun 2011 15:13:39 +0300 |
parents | 1575dc5d399a |
children | 964a72038bb0 |
files | mercurial/commandserver.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commandserver.py Mon Jun 20 19:08:41 2011 -0300 +++ b/mercurial/commandserver.py Tue Jun 21 15:13:39 2011 +0300 @@ -155,6 +155,9 @@ raise util.Abort(_('unknown mode %s') % mode) def _read(self, size): + if not size: + return '' + data = self.client.read(size) # is the other end closed?