comparison mercurial/error.py @ 26683: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
parents b13fdcc4e700
children 8d1cfd77b64f
comparison
equal deleted inserted replaced
26682:08b068240a1a 26683:634666c48b7d
63 Exists to allow more specialized catching.""" 63 Exists to allow more specialized catching."""
64 pass 64 pass
65 65
66 class ConfigError(Abort): 66 class ConfigError(Abort):
67 """Exception raised when parsing config files""" 67 """Exception raised when parsing config files"""
68
69 class UpdateAbort(Abort):
70 """Raised when an update is aborted for destination issue"""
68 71
69 class OutOfBandError(Exception): 72 class OutOfBandError(Exception):
70 """Exception raised when a remote repo reports failure""" 73 """Exception raised when a remote repo reports failure"""
71 74
72 def __init__(self, *args, **kw): 75 def __init__(self, *args, **kw):