hgext/gpg.py
changeset 4906 30847b8af7ca
parent 4730 eadfaa9ec487
child 5147 c80af96943aa
--- a/hgext/gpg.py	Sat Jul 21 16:02:09 2007 -0500
+++ b/hgext/gpg.py	Sat Jul 21 16:02:09 2007 -0500
@@ -240,7 +240,7 @@
 
     repo.wfile(".hgsigs", "ab").write(sigmessage)
 
-    if repo.dirstate.state(".hgsigs") == '?':
+    if '.hgsigs' not in repo.dirstate:
         repo.add([".hgsigs"])
 
     if opts["no_commit"]: