##// END OF EJS Templates
revlog: use the method to check if the revlog is being written to...
Raphaël Gomès -
r52751:2fd44b3d default
parent child Browse files
Show More
@@ -3160,7 +3160,7 class revlog:
3160 raise error.RevlogError(
3160 raise error.RevlogError(
3161 _(b"%s: attempt to add wdir revision") % self.display_id
3161 _(b"%s: attempt to add wdir revision") % self.display_id
3162 )
3162 )
3163 if self._inner._writinghandles is None:
3163 if not self._inner.is_writing:
3164 msg = b'adding revision outside `revlog._writing` context'
3164 msg = b'adding revision outside `revlog._writing` context'
3165 raise error.ProgrammingError(msg)
3165 raise error.ProgrammingError(msg)
3166
3166
General Comments 0
You need to be logged in to leave comments. Login now