D522: revlog: abort on attempt to write null revision
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Aug 28 10:01:26 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9180f8f593f3: revlog: abort on attempt to write null revision (authored by martinvonz).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D522?vs=1319&id=1348
REVISION DETAIL
https://phab.mercurial-scm.org/D522
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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:
To: martinvonz, indygreg, #hg-reviewers, quark
Cc: quark, mercurial-devel
More information about the Mercurial-devel
mailing list