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
20b62115
Commit
20b62115
authored
19 years ago
by
Thomas Arendsen Hein
Browse files
Options
Downloads
Patches
Plain Diff
Run commit message editor in the repo root (like hooks).
This makes the hgeditor script work with hg commit -R path/to/repo
parent
4b5725a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hgeditor
+0
-1
0 additions, 1 deletion
hgeditor
mercurial/localrepo.py
+4
-0
4 additions, 0 deletions
mercurial/localrepo.py
with
4 additions
and
1 deletion
hgeditor
+
0
−
1
View file @
20b62115
...
...
@@ -34,7 +34,6 @@
}
(
cd
"
`
hg root
`
"
grep
'^HG: changed'
"
$1
"
|
cut
-b
13- |
while
read
changed
;
do
hg diff
"
$changed
"
>>
"
$HGTMP
/diff"
done
...
...
This diff is collapsed.
Click to expand it.
mercurial/localrepo.py
+
4
−
0
View file @
20b62115
...
...
@@ -445,4 +445,7 @@
edittext
+=
""
.
join
([
"
HG: removed %s
\n
"
%
f
for
f
in
remove
])
if
not
changed
and
not
remove
:
edittext
+=
"
HG: no files changed
\n
"
# run editor in the repository root
olddir
=
os
.
getcwd
()
os
.
chdir
(
self
.
root
)
edittext
=
self
.
ui
.
edit
(
edittext
)
...
...
@@ -448,4 +451,5 @@
edittext
=
self
.
ui
.
edit
(
edittext
)
os
.
chdir
(
olddir
)
if
not
edittext
.
rstrip
():
return
None
text
=
edittext
...
...
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