Mercurial > hg > mercurial-crew
diff mercurial/error.py @ 27323:634666c48b7d
update: introduce a 'UpdateAbort' exception
The 'postincoming' function used by 'hg pull --update' and 'hg unbundle' is
catching 'Abort' exceptions to intercept failed update. This feel a bit too
wide to me, so I'm introducing a more precise exception to specify update
destination issues.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 05 Oct 2015 04:26:26 -0700 (2015-10-05) |
parents | b13fdcc4e700 |
children | 8d1cfd77b64f |
line wrap: on
line diff
--- a/mercurial/error.py +++ b/mercurial/error.py @@ -66,6 +66,9 @@ class ConfigError(Abort): """Exception raised when parsing config files""" +class UpdateAbort(Abort): + """Raised when an update is aborted for destination issue""" + class OutOfBandError(Exception): """Exception raised when a remote repo reports failure"""