bundle2: introduce a ReadOnlyPartError exception
As we will introduce functions to alter already created parts, we need a proper
exception to raise when code tries to alter a part that cannot be altered anymore.
--- a/mercurial/bundle2.py Fri May 23 16:20:30 2014 -0700
+++ b/mercurial/bundle2.py Sat May 24 16:08:05 2014 -0700
@@ -174,6 +174,10 @@
"""error raised when no handler is found for a Mandatory part"""
pass
+class ReadOnlyPartError(RuntimeError):
+ """error raised when code tries to alter a part being generated"""
+ pass
+
parthandlermapping = {}
def parthandler(parttype):