evolve: fix error in builddependencies
authorLaurent Charignon <lcharignon@fb.com>
Mon, 22 Jun 2015 12:41:32 -0700
changeset 1418 ed9a8b1ee9bd
parent 1417 9e7da169f66e
child 1419 b54524ae77c0
evolve: fix error in builddependencies When MultipleSuccessorsError was raised, we were still running the code below to add the dependency if succ was not None from a previous iteration. This bug was harmless because dependencies and rdependencies are sets but it makes the code clearer this way.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Jun 19 18:17:57 2015 -0700
+++ b/hgext/evolve.py	Mon Jun 22 12:41:32 2015 -0700
@@ -1394,6 +1394,7 @@
                 succ = _singlesuccessor(repo, p)
             except MultipleSuccessorsError, exc:
                 dependencies[r] = exc.successorssets
+                continue
             if succ in revs:
                 dependencies[r].add(succ)
                 rdependencies[succ].add(r)