builddependencies: don't add dependency on revision outside input set
This was already handled in the single-successor case, but had been
missed in the multiple-successors case.
Note that there seems to be a copy of builddependencies() in the
topics extension. I don't use topics more than I have to, so I'll let
someone else fix that code.
--- a/hgext3rd/evolve/utility.py Wed Jul 25 15:16:25 2018 -0700
+++ b/hgext3rd/evolve/utility.py Wed Jul 25 14:47:16 2018 -0700
@@ -106,7 +106,9 @@
tset = set()
for successorsset in exc.successorssets:
for node in successorsset:
- tset.add(repo[node].rev())
+ succ = repo[node].rev()
+ if succ in revs:
+ tset.add(succ)
dependencies[r] = tset
continue
if succ in revs: