changeset 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 a96b049075a8
children 3d44f1a68353
files hgext/gpg.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/gpg.py	Mon Jun 01 13:51:21 2009 -0500
+++ b/hgext/gpg.py	Mon Jun 01 13:51:21 2009 -0500
@@ -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 @@
                              % 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))