##// END OF EJS Templates
revlog: abort on attempt to write null revision...
Martin von Zweigbergk -
r33939:9180f8f5 default
parent child Browse files
Show More
@@ -1694,6 +1694,9 b' class revlog(object):'
1694 - rawtext is optional (can be None); if not set, cachedelta must be set.
1694 - rawtext is optional (can be None); if not set, cachedelta must be set.
1695 if both are set, they must correspond to each other.
1695 if both are set, they must correspond to each other.
1696 """
1696 """
1697 if node == nullid:
1698 raise RevlogError(_("%s: attempt to add null revision") %
1699 (self.indexfile))
1697 btext = [rawtext]
1700 btext = [rawtext]
1698 def buildtext():
1701 def buildtext():
1699 if btext[0] is not None:
1702 if btext[0] is not None:
General Comments 0
You need to be logged in to leave comments. Login now