Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundle2.py @ 21628:7c5a85619dca
bundle2: raise BundleValueError error for stream level unsupported params
This ensures both consistency and smooth propagation over the wire.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 28 May 2014 15:37:47 -0700 |
parents | 3e8bcc90f07c |
children | 17755dd8c509 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Wed May 28 16:46:58 2014 -0700 +++ b/mercurial/bundle2.py Wed May 28 15:37:47 2014 -0700 @@ -523,7 +523,7 @@ if name[0].islower(): self.ui.debug("ignoring unknown parameter %r\n" % name) else: - raise KeyError(name) + raise error.BundleValueError(params=(name,)) def iterparts(self):