comparison mercurial/error.py @ 21184:28d76afa1568 stable

bundle2: fix raising errors during heads checking If the heads on the server differ from the ones reported seen by the client at bundle time, we raise a PushRaced exception. However, the part raising the exception was broken. To fix it, we move the PushRaced class in the error module so it can be accessible everywhere without an import cycle. A test is also added to prevent regression.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 21 Apr 2014 18:59:09 -0700
parents 3c224e0949de
children 7568f5c1c801
comparison
equal deleted inserted replaced
21183:4345274adc4b 21184:28d76afa1568
92 class SignalInterrupt(KeyboardInterrupt): 92 class SignalInterrupt(KeyboardInterrupt):
93 """Exception raised on SIGTERM and SIGHUP.""" 93 """Exception raised on SIGTERM and SIGHUP."""
94 94
95 class SignatureError(Exception): 95 class SignatureError(Exception):
96 pass 96 pass
97
98 class PushRaced(RuntimeError):
99 """An exception raised during unbundling that indicate a push race"""
100