##// END OF EJS Templates
gpg: add shortkey() to convert from long id to short
Wei, Elson -
r19443:2a7fd31a default
parent child Browse files
Show More
@@ -276,6 +276,13 b' def sign(ui, repo, *revs, **opts):'
276 276 except ValueError, inst:
277 277 raise util.Abort(str(inst))
278 278
279 def shortkey(ui, key):
280 if len(key) != 16:
281 ui.debug("key ID \"%s\" format error\n" % key)
282 return key
283
284 return key[-8:]
285
279 286 def node2txt(repo, node, ver):
280 287 """map a manifest into some text"""
281 288 if ver == "0":
General Comments 0
You need to be logged in to leave comments. Login now