# HG changeset patch # User Pierre-Yves David # Date 2017-03-15 07:28:21 # Node ID 279cbde7bf3de719094fef46d0a083147fa6e606 # Parent aa797bd54f44e98939417beffdb81a951829e32b gpg: use 'wvfs' instead of 'wfile' Method is about to be deprecated and the modern form is shorter. diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -281,7 +281,7 @@ def _dosign(ui, repo, *revs, **opts): raise error.Abort(_("working copy of .hgsigs is changed "), hint=_("please commit .hgsigs manually")) - sigsfile = repo.wfile(".hgsigs", "ab") + sigsfile = repo.wvfs(".hgsigs", "ab") sigsfile.write(sigmessage) sigsfile.close()