changeset 33938 | 9180f8f593f3 |
parent 33392 | ac6446611ad2 |
child 34026 | b2eb0aa445cb |
--- a/mercurial/revlog.py Tue Aug 22 23:39:05 2017 -0700 +++ b/mercurial/revlog.py Fri Aug 25 15:50:07 2017 -0700 @@ -1694,6 +1694,9 @@ - rawtext is optional (can be None); if not set, cachedelta must be set. if both are set, they must correspond to each other. """ + if node == nullid: + raise RevlogError(_("%s: attempt to add null revision") % + (self.indexfile)) btext = [rawtext] def buildtext(): if btext[0] is not None: