Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
evolve
Commits
372dc6c5692a
Commit
372dc6c5
authored
Mar 11, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
hgext3rd/evolve/obshistory.py
View file @
372dc6c5
...
...
@@ -169,7 +169,7 @@
_props
=
{
b
"template"
:
self
.
template
}
fm
=
self
.
ui
.
formatter
(
b
'debugobshistory'
,
_props
)
_debugobshistory
displaynode
(
fm
,
self
.
repo
,
changenode
)
displaynode
(
fm
,
self
.
repo
,
changenode
)
markerfm
=
fm
.
nested
(
b
"markers"
)
...
...
@@ -452,7 +452,7 @@
while
nodes
:
ctxnode
=
nodes
.
pop
()
_debugobshistory
displaynode
(
fm
,
unfi
,
ctxnode
)
displaynode
(
fm
,
unfi
,
ctxnode
)
succs
=
successors
.
get
(
ctxnode
,
())
...
...
@@ -471,5 +471,5 @@
nodes
.
append
(
p
[
0
])
fm
.
end
()
def
_debugobshistory
displaynode
(
fm
,
repo
,
node
):
def
displaynode
(
fm
,
repo
,
node
):
if
node
in
repo
:
...
...
@@ -475,3 +475,3 @@
if
node
in
repo
:
_debugobshistory
displayctx
(
fm
,
repo
[
node
])
displayctx
(
fm
,
repo
[
node
])
else
:
...
...
@@ -477,3 +477,3 @@
else
:
_debugobshistory
displaymissingctx
(
fm
,
node
)
displaymissingctx
(
fm
,
node
)
...
...
@@ -479,5 +479,5 @@
def
_debugobshistory
displayctx
(
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
_debugobshistory
displaymissingctx
(
fm
,
nodewithoutctx
):
def
displaymissingctx
(
fm
,
nodewithoutctx
):
fm
.
startitem
()
fm
.
data
(
node
=
nodemod
.
hex
(
nodewithoutctx
))
fm
.
plain
(
nodemod
.
short
(
nodewithoutctx
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment