Patchwork D274: obsutil: defend against succsmarkers() returning None

login
register
mail settings
Submitter phabricator
Date Aug. 9, 2017, 2:18 p.m.
Message ID <87dad81c30681bc2187d48aa5324b72c@localhost.localdomain>
Download mbox | patch
Permalink /patch/22785/
State Not Applicable
Headers show

Comments

phabricator - Aug. 9, 2017, 2:18 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG888f24810ea2: obsutil: defend against succsmarkers() returning None (authored by durin42).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D274?vs=639&id=669

REVISION DETAIL
  https://phab.mercurial-scm.org/D274

AFFECTED FILES
  mercurial/obsutil.py

CHANGE DETAILS




To: durin42, #hg-reviewers, quark
Cc: mercurial-devel

Patch

diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py
--- a/mercurial/obsutil.py
+++ b/mercurial/obsutil.py
@@ -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