Mercurial > hg
changeset 1509:46a07392cf28
Add safety check for addgroup
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 07 Nov 2005 15:40:24 -0800 |
parents | b254243b7159 |
children | 755e7ac351ef |
files | mercurial/revlog.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Nov 04 11:37:45 2005 -0800 +++ b/mercurial/revlog.py Mon Nov 07 15:40:24 2005 -0800 @@ -784,6 +784,10 @@ continue delta = chunk[80:] + for p in (p1, p2): + if not p in self.nodemap: + raise RevlogError(_("unknown parent %s") % short(p1)) + if not chain: # retrieve the parent revision of the delta chain chain = p1