# HG changeset patch # User Sushil khanchi # Date 1541481215 -19800 # Node ID e796835fe6b3ea8bbc3094aa8337095accffae86 # Parent a8ed26f01c8d7b81cb4f5886be52ddc3a1d82c90 evolvecmd: _possibledestination() skip visiting empty parent I see that even in the case when "parent == -1" we are visiting that also and find succsets for that and in last -1 is being added in the set of possible destination. Why not skip that? diff -r a8ed26f01c8d -r e796835fe6b3 hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Sat Nov 03 12:21:19 2018 +0530 +++ b/hgext3rd/evolve/evolvecmd.py Tue Nov 06 10:43:35 2018 +0530 @@ -1015,6 +1015,8 @@ tovisit = list(parents(rev)) while tovisit: r = tovisit.pop() + if r == -1: + continue succsets = obsutil.successorssets(repo, tonode(r)) if not succsets: tovisit.extend(parents(r))