changeset 33273:5724aaa99dd6

obsolete: pass cache argument of successors set explicitly We plan to add a new argument to successorsets. But first we need to update all callers to pass cache argument explicitly to avoid arguments confusion.
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 15:02:19 +0200
parents df90f4d6c609
children 68f3e819d41d
files mercurial/debugcommands.py mercurial/obsolete.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Fri Jun 30 13:47:24 2017 +0200
+++ b/mercurial/debugcommands.py	Fri Jun 30 15:02:19 2017 +0200
@@ -2111,7 +2111,7 @@
     for rev in scmutil.revrange(repo, revs):
         ctx = repo[rev]
         ui.write('%s\n'% ctx2str(ctx))
-        for succsset in obsutil.successorssets(repo, ctx.node(), cache):
+        for succsset in obsutil.successorssets(repo, ctx.node(), cache=cache):
             if succsset:
                 ui.write('    ')
                 ui.write(node2str(succsset[0]))
--- a/mercurial/obsolete.py	Fri Jun 30 13:47:24 2017 +0200
+++ b/mercurial/obsolete.py	Fri Jun 30 15:02:19 2017 +0200
@@ -958,7 +958,7 @@
                 continue # emergency cycle hanging prevention
             seen.add(prec)
             if prec not in newermap:
-                obsutil.successorssets(repo, prec, newermap)
+                obsutil.successorssets(repo, prec, cache=newermap)
             newer = [n for n in newermap[prec] if n]
             if len(newer) > 1:
                 divergent.add(ctx.rev())