Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
Mercurial
hg
Commits
4ccf3de52989
Commit
4ccf3de52989
authored
20 years ago
by
Matt Mackall
Browse files
Options
Downloads
Patches
Plain Diff
Turn off signing with hgeditor by default
manifest hash: f2732475351ee22d78e0dab629db03f1f215b21f
parent
104d2aee3b44
Branches
Branches containing commit
Tags
0.6b
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hgeditor
+14
-6
14 additions, 6 deletions
hgeditor
with
14 additions
and
6 deletions
hgeditor
+
14
−
6
View file @
4ccf3de5
...
...
@@ -3,6 +3,9 @@
# This is an example of using HGEDITOR to automate the signing of
# commits and so on.
# change this to one to turn on GPG support
SIGN
=
0
T1
=
""
;
T2
=
""
cleanup_exit
()
{
rm
-f
"
$T1
"
"
$T2
"
...
...
@@ -40,9 +43,11 @@
CHECKSUM
=
`
md5sum
"
$T1
"
`
$EDITOR
"
$T1
"
"
$T2
"
||
cleanup_exit
$?
if
[
"
$SIGN
"
==
"1"
]
;
then
echo
"
$CHECKSUM
"
|
md5sum
-c
2>/dev/null
&&
cleanup_exit 13
{
head
-n
1
"
$T1
"
echo
grep
-v
"^HG:"
"
$T1
"
| gpg
-t
-a
-u
"
${
HGUSER
}
"
--clearsign
}
>
"
$T2
"
&&
mv
"
$T2
"
"
$1
"
...
...
@@ -43,9 +48,12 @@
echo
"
$CHECKSUM
"
|
md5sum
-c
2>/dev/null
&&
cleanup_exit 13
{
head
-n
1
"
$T1
"
echo
grep
-v
"^HG:"
"
$T1
"
| gpg
-t
-a
-u
"
${
HGUSER
}
"
--clearsign
}
>
"
$T2
"
&&
mv
"
$T2
"
"
$1
"
else
mv
"
$T1
"
"
$1
"
fi
cleanup_exit
$?
fi
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