Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireproto.py @ 30872:accaa04f951c stable
bundle1: display server abort hint during unbundle
The code was printing the abort message but not the hint. This is now fixed.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 10 Feb 2017 17:56:52 +0100 |
parents | d554e624c5fe |
children | 3d4afc2fdcd7 |
line wrap: on
line diff
--- a/mercurial/wireproto.py Fri Feb 10 17:56:59 2017 +0100 +++ b/mercurial/wireproto.py Fri Feb 10 17:56:52 2017 +0100 @@ -981,6 +981,8 @@ # This need to be moved to something proper. # Feel free to do it. util.stderr.write("abort: %s\n" % exc) + if exc.hint is not None: + util.stderr.write("(%s)\n" % exc.hint) return pushres(0) except error.PushRaced: return pusherr(str(exc))