Mercurial > public > mercurial-scm > hg
diff hgext/gpg.py @ 50819:181936ad069a stable
gpg: fix an UnboundLocalError whenever using --force
It looks like this has been broke for almost a decade, since 9c89ac99690e.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 20 Aug 2023 16:32:18 -0400 |
parents | 46883d91e2b0 |
children | b3ac579bde41 |
line wrap: on
line diff
--- a/hgext/gpg.py Thu Aug 10 19:00:19 2023 +0100 +++ b/hgext/gpg.py Sun Aug 20 16:32:18 2023 -0400 @@ -339,8 +339,9 @@ repo.vfs.append(b"localsigs", sigmessage) return + msigs = match.exact([b'.hgsigs']) + if not opts[b"force"]: - msigs = match.exact([b'.hgsigs']) if any(repo.status(match=msigs, unknown=True, ignored=True)): raise error.Abort( _(b"working copy of .hgsigs is changed "),