Commit 9923c6d6 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

obslog: support --all with --no-graph

parent 0329246c70f3
Pipeline #5403 passed with stage
in 4 minutes and 27 seconds
......@@ -446,9 +446,10 @@
"""
fm = ui.formatter(b'debugobshistory', pycompat.byteskwargs(opts))
predecessors = repo.obsstore.predecessors
successors = repo.obsstore.successors
nodec = repo.changelog.node
unfi = repo.unfiltered()
nodes = [nodec(r) for r in revs]
seen = set(nodes)
toshow = []
......@@ -449,9 +450,10 @@
nodec = repo.changelog.node
unfi = repo.unfiltered()
nodes = [nodec(r) for r in revs]
seen = set(nodes)
toshow = []
walksuccessors = opts and opts.get('all')
filternonlocal = opts and opts.get('filternonlocal')
includediff = opts and opts.get('patch')
......@@ -471,6 +473,13 @@
seen.add(p[0])
nodes.append(p[0])
if walksuccessors:
for successor in successors.get(ctxnode, ()):
for s in successor[1]:
if s not in seen:
seen.add(s)
nodes.append(s)
for ctx in toshow:
displaynode(fm, unfi, ctx.node())
......
......@@ -258,6 +258,8 @@
note: testing split
(No patch available, context is not local)
337fec4d2edc (1) A0
$ hg obslog -R $TESTTMP/server --no-graph -f --all --patch tip
f257fde29c7a (2) A0
......@@ -261,3 +263,5 @@
$ hg obslog -R $TESTTMP/server --no-graph -f --all --patch tip
f257fde29c7a (2) A0
337fec4d2edc (1) A0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment