D274: obsutil: defend against succsmarkers() returning None
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Aug 9 10:18:19 EDT 2017
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
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
To: durin42, #hg-reviewers, quark
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list