Mercurial > public > mercurial-scm > hg
diff mercurial/error.py @ 26393:cff70549a959
bundle2: rename error exception class for unsupported feature
The original name explicitly mention "Part", however it is also used outside of
parts related feature. We rename from 'UnsupportedPartError' to
'BundleUnknownFeatureError' to fix this.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 23 Sep 2015 11:44:52 -0700 |
parents | f51713b8c6fa |
children | e75da738add5 |
line wrap: on
line diff
--- a/mercurial/error.py Wed Sep 23 11:33:30 2015 -0700 +++ b/mercurial/error.py Wed Sep 23 11:44:52 2015 -0700 @@ -141,7 +141,7 @@ class BundleValueError(ValueError): """error raised when bundle2 cannot be processed""" -class UnsupportedPartError(BundleValueError): +class BundleUnknownFeatureError(BundleValueError): def __init__(self, parttype=None, params=()): self.parttype = parttype self.params = params