# HG changeset patch # User Benoit Boissinot # Date 1266962197 -3600 # Node ID e4a8ae4659d302a5d903b439c23ac870a2e15355 # Parent 8ec48ab90f72e598076675dae4f940c517fe1d2d gpg: make 13448eab08ca work when not on repo root diff -r 8ec48ab90f72 -r e4a8ae4659d3 hgext/gpg.py --- a/hgext/gpg.py Tue Feb 23 06:44:37 2010 +0100 +++ b/hgext/gpg.py Tue Feb 23 22:56:37 2010 +0100 @@ -6,7 +6,7 @@ '''commands to sign and verify changesets''' import os, tempfile, binascii -from mercurial import util, commands, match, cmdutil +from mercurial import util, commands, match from mercurial import node as hgnode from mercurial.i18n import _ @@ -237,7 +237,7 @@ repo.opener("localsigs", "ab").write(sigmessage) return - msigs = cmdutil.matchfiles(repo, ['.hgsigs']) + msigs = match.exact(repo.root, '', ['.hgsigs']) s = repo.status(match=msigs, unknown=True, ignored=True)[:6] if util.any(s) and not opts["force"]: raise util.Abort(_("working copy of .hgsigs is changed "