comparison hgext/gpg.py @ 16743:38caf405d010

hgext: mark all first-party extensions as such
author Augie Fackler <raf@durin42.com>
date Tue, 15 May 2012 14:37:49 -0500
parents cfb6682961b8
children 7922004a46b8
comparison
equal deleted inserted replaced
16742:973671fc0804 16743:38caf405d010
10 from mercurial import node as hgnode 10 from mercurial import node as hgnode
11 from mercurial.i18n import _ 11 from mercurial.i18n import _
12 12
13 cmdtable = {} 13 cmdtable = {}
14 command = cmdutil.command(cmdtable) 14 command = cmdutil.command(cmdtable)
15 testedwith = 'internal'
15 16
16 class gpg(object): 17 class gpg(object):
17 def __init__(self, path, key=None): 18 def __init__(self, path, key=None):
18 self.path = path 19 self.path = path
19 self.key = (key and " --local-user \"%s\"" % key) or "" 20 self.key = (key and " --local-user \"%s\"" % key) or ""
284 """map a manifest into some text""" 285 """map a manifest into some text"""
285 if ver == "0": 286 if ver == "0":
286 return "%s\n" % hgnode.hex(node) 287 return "%s\n" % hgnode.hex(node)
287 else: 288 else:
288 raise util.Abort(_("unknown signature version")) 289 raise util.Abort(_("unknown signature version"))
289