equal
deleted
inserted
replaced
2305 """ |
2305 """ |
2306 # passed to successorssets caching computation from one call to another |
2306 # passed to successorssets caching computation from one call to another |
2307 cache = {} |
2307 cache = {} |
2308 ctx2str = str |
2308 ctx2str = str |
2309 node2str = short |
2309 node2str = short |
2310 if ui.debug(): |
|
2311 def ctx2str(ctx): |
|
2312 return ctx.hex() |
|
2313 node2str = hex |
|
2314 for rev in scmutil.revrange(repo, revs): |
2310 for rev in scmutil.revrange(repo, revs): |
2315 ctx = repo[rev] |
2311 ctx = repo[rev] |
2316 ui.write('%s\n'% ctx2str(ctx)) |
2312 ui.write('%s\n'% ctx2str(ctx)) |
2317 for succsset in obsutil.successorssets(repo, ctx.node(), |
2313 for succsset in obsutil.successorssets(repo, ctx.node(), |
2318 closest=opts[r'closest'], |
2314 closest=opts[r'closest'], |