Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
64e0f0cf
Commit
64e0f0cf
authored
12 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
histedit: move makedesc function near other rules related function
Having it in the middle of action logic is confusing
parent
bea381c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hgext/histedit.py
+13
-14
13 additions, 14 deletions
hgext/histedit.py
with
13 additions
and
14 deletions
hgext/histedit.py
+
13
−
14
View file @
64e0f0cf
...
...
@@ -282,20 +282,6 @@
# We didn't make an edit, so just indicate no replaced nodes
return
newctx
,
[
new
],
[],
[]
def
makedesc
(
c
):
"""
build a initial action line for a ctx `c`
line are in the form:
pick <hash> <rev> <summary>
"""
summary
=
''
if
c
.
description
():
summary
=
c
.
description
().
splitlines
()[
0
]
line
=
'
pick %s %d %s
'
%
(
c
.
hex
()[:
12
],
c
.
rev
(),
summary
)
return
line
[:
80
]
# trim to 80 chars so it's not stupidly wide in my editor
actiontable
=
{
'
p
'
:
pick
,
'
pick
'
:
pick
,
'
e
'
:
edit
,
...
...
@@ -641,6 +627,19 @@
return
pickle
.
load
(
fp
)
def
makedesc
(
c
):
"""
build a initial action line for a ctx `c`
line are in the form:
pick <hash> <rev> <summary>
"""
summary
=
''
if
c
.
description
():
summary
=
c
.
description
().
splitlines
()[
0
]
line
=
'
pick %s %d %s
'
%
(
c
.
hex
()[:
12
],
c
.
rev
(),
summary
)
return
line
[:
80
]
# trim to 80 chars so it's not stupidly wide in my editor
def
verifyrules
(
rules
,
repo
,
ctxs
):
"""
Verify that there exists exactly one edit rule per given changeset.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment