D4411: obsutil: make sure "addedmarkers" is not None in getobsoleted()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Aug 29 09:04:29 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG93175cba7edd: obsutil: make sure "addedmarkers" is not None in getobsoleted() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4411?vs=10623&id=10639

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

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
@@ -464,7 +464,7 @@
     phase = repo._phasecache.phase
     succsmarkers = repo.obsstore.successors.get
     public = phases.public
-    addedmarkers = tr.changes.get('obsmarkers')
+    addedmarkers = tr.changes['obsmarkers']
     origrepolen = tr.changes['origrepolen']
     seenrevs = set()
     obsoleted = set()



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list