changeset 13400 | 14f3795a5ed7 |
parent 12965 | 0d4fb319974b |
child 14168 | 135e244776f0 |
--- a/hgext/gpg.py Fri Feb 11 22:24:10 2011 +0800 +++ b/hgext/gpg.py Fri Dec 24 15:23:01 2010 +0100 @@ -244,7 +244,9 @@ "(please commit .hgsigs manually " "or use --force)")) - repo.wfile(".hgsigs", "ab").write(sigmessage) + sigsfile = repo.wfile(".hgsigs", "ab") + sigsfile.write(sigmessage) + sigsfile.close() if '.hgsigs' not in repo.dirstate: repo[None].add([".hgsigs"])