Skip to content
Snippets Groups Projects
Commit 2a7fd31a authored by Wei, Elson's avatar Wei, Elson
Browse files

gpg: add shortkey() to convert from long id to short

parent 33c72f05
No related branches found
No related tags found
No related merge requests found
......@@ -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":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment