Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-windows-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
hg-windows-ci
Commits
2a7fd31a
Commit
2a7fd31a
authored
11 years ago
by
Wei, Elson
Browse files
Options
Downloads
Patches
Plain Diff
gpg: add shortkey() to convert from long id to short
parent
33c72f05
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/gpg.py
+7
-0
7 additions, 0 deletions
hgext/gpg.py
with
7 additions
and
0 deletions
hgext/gpg.py
+
7
−
0
View file @
2a7fd31a
...
...
@@ -276,6 +276,13 @@
except
ValueError
,
inst
:
raise
util
.
Abort
(
str
(
inst
))
def
shortkey
(
ui
,
key
):
if
len
(
key
)
!=
16
:
ui
.
debug
(
"
key ID
\"
%s
\"
format error
\n
"
%
key
)
return
key
return
key
[
-
8
:]
def
node2txt
(
repo
,
node
,
ver
):
"""
map a manifest into some text
"""
if
ver
==
"
0
"
:
...
...
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