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?
--- 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))