Show More
@@ -855,7 +855,7 b' class bundlepart(object):' | |||
|
855 | 855 | self._seenparams = set() |
|
856 | 856 | for pname, __ in self._mandatoryparams + self._advisoryparams: |
|
857 | 857 | if pname in self._seenparams: |
|
858 |
raise |
|
|
858 | raise error.ProgrammingError('duplicated params: %s' % pname) | |
|
859 | 859 | self._seenparams.add(pname) |
|
860 | 860 | # status of the part's generation: |
|
861 | 861 | # - None: not started, |
@@ -913,7 +913,7 b' class bundlepart(object):' | |||
|
913 | 913 | # methods used to generates the bundle2 stream |
|
914 | 914 | def getchunks(self, ui): |
|
915 | 915 | if self._generated is not None: |
|
916 |
raise |
|
|
916 | raise error.ProgrammingError('part can only be consumed once') | |
|
917 | 917 | self._generated = False |
|
918 | 918 | |
|
919 | 919 | if ui.debugflag: |
@@ -1082,7 +1082,7 b' class interruptoperation(object):' | |||
|
1082 | 1082 | |
|
1083 | 1083 | @property |
|
1084 | 1084 | def repo(self): |
|
1085 |
raise |
|
|
1085 | raise error.ProgrammingError('no repo access from stream interruption') | |
|
1086 | 1086 | |
|
1087 | 1087 | def gettransaction(self): |
|
1088 | 1088 | raise TransactionUnavailable('no repo access from stream interruption') |
General Comments 0
You need to be logged in to leave comments.
Login now