Changeset - 6834e1265415
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2018-10-29 01:20:21
mads@kiilerich.com
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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/graphmod.py
Show inline comments
 
@@ -149,7 +149,7 @@ def _colored(repo, dag):
 
            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
0 comments (0 inline, 0 general)