Mercurial > public > mercurial-scm > hg
comparison mercurial/sshrepo.py @ 2437:2f5dbc24874a
sshrepo: fix bug in error formatting.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Thu, 15 Jun 2006 15:36:23 -0700 |
parents | a1cfe679192c |
children | cc1011a7ed09 |
comparison
equal
deleted
inserted
replaced
2436:f910b91dd912 | 2437:2f5dbc24874a |
---|---|
142 return self.pipei | 142 return self.pipei |
143 | 143 |
144 def addchangegroup(self, cg, source): | 144 def addchangegroup(self, cg, source): |
145 d = self.call("addchangegroup") | 145 d = self.call("addchangegroup") |
146 if d: | 146 if d: |
147 raise hg.RepoError(_("push refused: %s"), d) | 147 raise hg.RepoError(_("push refused: %s") % d) |
148 | 148 |
149 while 1: | 149 while 1: |
150 d = cg.read(4096) | 150 d = cg.read(4096) |
151 if not d: break | 151 if not d: break |
152 self.pipeo.write(d) | 152 self.pipeo.write(d) |