# HG changeset patch # User Matt Mackall # Date 2009-06-01 18:51:21 # Node ID 02a12835b17ec86c34b9e89efd7cc920fa417389 # Parent a96b049075a8403a797d9ccabaf882804cf48f89 gpg: use match.exact rather than files for commit diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -6,7 +6,7 @@ # GNU General Public License version 2, incorporated herein by reference. import os, tempfile, binascii -from mercurial import util, commands +from mercurial import util, commands, match from mercurial import node as hgnode from mercurial.i18n import _ @@ -255,7 +255,8 @@ def sign(ui, repo, *revs, **opts): % hgnode.short(n) for n in nodes]) try: - repo.commit([".hgsigs"], message, opts['user'], opts['date']) + m = match.exact(['.hgsigs']) + repo.commit(None, message, opts['user'], opts['date'], match=m) except ValueError, inst: raise util.Abort(str(inst))