builddependencies: don't add dependency on revision outside input set stable
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 25 Jul 2018 14:47:16 -0700
branchstable
changeset 3900 05cb942cb9b9
parent 3899 9a6a767bef9d
child 3901 f2b8429db565
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.
hgext3rd/evolve/utility.py
--- 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: