hgext/gpg.py
changeset 4906 30847b8af7ca
parent 4730 eadfaa9ec487
child 5147 c80af96943aa
equal deleted inserted replaced
4905:fc61495ea9cf 4906:30847b8af7ca
   238                                "(please commit .hgsigs manually "
   238                                "(please commit .hgsigs manually "
   239                                "or use --force)"))
   239                                "or use --force)"))
   240 
   240 
   241     repo.wfile(".hgsigs", "ab").write(sigmessage)
   241     repo.wfile(".hgsigs", "ab").write(sigmessage)
   242 
   242 
   243     if repo.dirstate.state(".hgsigs") == '?':
   243     if '.hgsigs' not in repo.dirstate:
   244         repo.add([".hgsigs"])
   244         repo.add([".hgsigs"])
   245 
   245 
   246     if opts["no_commit"]:
   246     if opts["no_commit"]:
   247         return
   247         return
   248 
   248