obsutil: defend against succsmarkers() returning None
authorAugie Fackler <augie@google.com>
Mon, 24 Jul 2017 11:29:51 -0400
changeset 33713 888f24810ea2
parent 33712 672ad4f3bb84
child 33714 d880a6bcef2f
obsutil: defend against succsmarkers() returning None I'm not sure if this is a realistic problem, but doing this avoids some pretty awful test failures on Python 3, and it looks like it should be harmless. Differential Revision: https://phab.mercurial-scm.org/D274
mercurial/obsutil.py
--- a/mercurial/obsutil.py	Mon Jul 24 11:28:59 2017 -0400
+++ b/mercurial/obsutil.py	Mon Jul 24 11:29:51 2017 -0400
@@ -307,7 +307,7 @@
         seenrevs.add(rev)
         if phase(repo, rev) == public:
             continue
-        if set(succsmarkers(node)).issubset(addedmarkers):
+        if set(succsmarkers(node) or []).issubset(addedmarkers):
             obsoleted.add(rev)
     return obsoleted