Mercurial > public > mercurial-scm > hg-stable
diff mercurial/sshserver.py @ 12703:40bb5853fc4b
wireproto: introduce pusherr() to deal with "unsynced changes" error
The behaviour between http and ssh still differ:
- the "unsynced changes" is seen as a remote output in the http cases
- but it is correctly seen as a push error for ssh
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 11 Oct 2010 12:45:36 -0500 |
parents | 6a6149487817 |
children | cc9bf81382f5 |
line wrap: on
line diff
--- a/mercurial/sshserver.py Mon Oct 11 12:44:33 2010 -0500 +++ b/mercurial/sshserver.py Mon Oct 11 12:45:36 2010 -0500 @@ -79,6 +79,9 @@ self.sendresponse('') self.sendresponse(str(rsp.res)) + def sendpusherror(self, rsp): + self.sendresponse(rsp.res) + def serve_forever(self): try: while self.serve_one(): @@ -92,6 +95,7 @@ str: sendresponse, wireproto.streamres: sendstream, wireproto.pushres: sendpushresponse, + wireproto.pusherr: sendpusherror, } def serve_one(self):