Commit 372dc6c5 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

obshistory: rename node/ctx-displaying functions

Not just for debug, and yes we know it's obshistory-related.
parent 426f2800b793
Pipeline #5293 passed with stage
in 5 minutes and 13 seconds
......@@ -169,7 +169,7 @@
_props = {b"template": self.template}
fm = self.ui.formatter(b'debugobshistory', _props)
_debugobshistorydisplaynode(fm, self.repo, changenode)
displaynode(fm, self.repo, changenode)
markerfm = fm.nested(b"markers")
......@@ -452,7 +452,7 @@
while nodes:
ctxnode = nodes.pop()
_debugobshistorydisplaynode(fm, unfi, ctxnode)
displaynode(fm, unfi, ctxnode)
succs = successors.get(ctxnode, ())
......@@ -471,5 +471,5 @@
nodes.append(p[0])
fm.end()
def _debugobshistorydisplaynode(fm, repo, node):
def displaynode(fm, repo, node):
if node in repo:
......@@ -475,3 +475,3 @@
if node in repo:
_debugobshistorydisplayctx(fm, repo[node])
displayctx(fm, repo[node])
else:
......@@ -477,3 +477,3 @@
else:
_debugobshistorydisplaymissingctx(fm, node)
displaymissingctx(fm, node)
......@@ -479,5 +479,5 @@
def _debugobshistorydisplayctx(fm, ctx):
def displayctx(fm, ctx):
shortdescription = ctx.description().strip()
if shortdescription:
shortdescription = shortdescription.splitlines()[0]
......@@ -495,7 +495,7 @@
label=b"evolve.short_description")
fm.plain(b'\n')
def _debugobshistorydisplaymissingctx(fm, nodewithoutctx):
def displaymissingctx(fm, nodewithoutctx):
fm.startitem()
fm.data(node=nodemod.hex(nodewithoutctx))
fm.plain(nodemod.short(nodewithoutctx),
......
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