Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 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 | a14e2e7f7d1f |
children | 68f3e819d41d |
comparison
equal
deleted
inserted
replaced
33272:df90f4d6c609 | 33273:5724aaa99dd6 |
---|---|
2109 return ctx.hex() | 2109 return ctx.hex() |
2110 node2str = hex | 2110 node2str = hex |
2111 for rev in scmutil.revrange(repo, revs): | 2111 for rev in scmutil.revrange(repo, revs): |
2112 ctx = repo[rev] | 2112 ctx = repo[rev] |
2113 ui.write('%s\n'% ctx2str(ctx)) | 2113 ui.write('%s\n'% ctx2str(ctx)) |
2114 for succsset in obsutil.successorssets(repo, ctx.node(), cache): | 2114 for succsset in obsutil.successorssets(repo, ctx.node(), cache=cache): |
2115 if succsset: | 2115 if succsset: |
2116 ui.write(' ') | 2116 ui.write(' ') |
2117 ui.write(node2str(succsset[0])) | 2117 ui.write(node2str(succsset[0])) |
2118 for node in succsset[1:]: | 2118 for node in succsset[1:]: |
2119 ui.write(' ') | 2119 ui.write(' ') |