changeset 39300:52e6171ec822

obsutil: make sure "addedrevs" is not None in getobsoleted() If it were None, "rev in addedrevs" would crash. So tr.changes["revs"] should be a mandatory parameter here.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Aug 2018 15:19:43 +0900
parents 7775c1fb8fa0
children 5763216ba311
files mercurial/obsutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/obsutil.py	Tue May 29 18:13:19 2018 +0200
+++ b/mercurial/obsutil.py	Sat Aug 25 15:19:43 2018 +0900
@@ -465,7 +465,7 @@
     succsmarkers = repo.obsstore.successors.get
     public = phases.public
     addedmarkers = tr.changes.get('obsmarkers')
-    addedrevs = tr.changes.get('revs')
+    addedrevs = tr.changes['revs']
     seenrevs = set()
     obsoleted = set()
     for mark in addedmarkers: