Mercurial > kallithea
changeset 7393:6834e1265415
graph: don't try to get obsolete status for fake parent revisions
Fake parents use negative revision numbers as internal placeholders.
Previous Mercurial versions could handle negative non-existing revision
numbers, but Mercurial 4.8 will fail on this invalid input when getting the
obsolete status.
Instead, make sure we only get obsolete status for actual revisions.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 29 Oct 2018 01:20:21 +0100 |
parents | b2c15f308ad2 |
children | 9ca238e56396 |
files | kallithea/lib/graphmod.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/graphmod.py Mon Oct 29 01:20:08 2018 +0100 +++ b/kallithea/lib/graphmod.py Mon Oct 29 01:20:21 2018 +0100 @@ -149,7 +149,7 @@ b = branch(rev) searching = True for p in reversed(addparents): - obs[p] = int(repo[p].obsolete) + obs[p] = int(repo[p].obsolete) if p >= 0 else 0 if searching and branch(abs(p)) in [b, None]: # This is the first parent on the same branch - inherit the color colors[p] = color