Mercurial > hg
comparison hgext/gpg.py @ 8701:02a12835b17e
gpg: use match.exact rather than files for commit
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 01 Jun 2009 13:51:21 -0500 |
parents | db52cc4f2f97 |
children | 25e9c71b89de |
comparison
equal
deleted
inserted
replaced
8700:a96b049075a8 | 8701:02a12835b17e |
---|---|
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2, incorporated herein by reference. | 6 # GNU General Public License version 2, incorporated herein by reference. |
7 | 7 |
8 import os, tempfile, binascii | 8 import os, tempfile, binascii |
9 from mercurial import util, commands | 9 from mercurial import util, commands, match |
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 class gpg: | 13 class gpg: |
14 def __init__(self, path, key=None): | 14 def __init__(self, path, key=None): |
253 if not message: | 253 if not message: |
254 message = "\n".join([_("Added signature for changeset %s") | 254 message = "\n".join([_("Added signature for changeset %s") |
255 % hgnode.short(n) | 255 % hgnode.short(n) |
256 for n in nodes]) | 256 for n in nodes]) |
257 try: | 257 try: |
258 repo.commit([".hgsigs"], message, opts['user'], opts['date']) | 258 m = match.exact(['.hgsigs']) |
259 repo.commit(None, message, opts['user'], opts['date'], match=m) | |
259 except ValueError, inst: | 260 except ValueError, inst: |
260 raise util.Abort(str(inst)) | 261 raise util.Abort(str(inst)) |
261 | 262 |
262 def node2txt(repo, node, ver): | 263 def node2txt(repo, node, ver): |
263 """map a manifest into some text""" | 264 """map a manifest into some text""" |