hgext/gpg.py
changeset 31414 279cbde7bf3d
parent 30925 82f1ef8b4477
child 32337 46ba2cdda476
equal deleted inserted replaced
31413:aa797bd54f44 31414:279cbde7bf3d
   279         msigs = match.exact(repo.root, '', ['.hgsigs'])
   279         msigs = match.exact(repo.root, '', ['.hgsigs'])
   280         if any(repo.status(match=msigs, unknown=True, ignored=True)):
   280         if any(repo.status(match=msigs, unknown=True, ignored=True)):
   281             raise error.Abort(_("working copy of .hgsigs is changed "),
   281             raise error.Abort(_("working copy of .hgsigs is changed "),
   282                              hint=_("please commit .hgsigs manually"))
   282                              hint=_("please commit .hgsigs manually"))
   283 
   283 
   284     sigsfile = repo.wfile(".hgsigs", "ab")
   284     sigsfile = repo.wvfs(".hgsigs", "ab")
   285     sigsfile.write(sigmessage)
   285     sigsfile.write(sigmessage)
   286     sigsfile.close()
   286     sigsfile.close()
   287 
   287 
   288     if '.hgsigs' not in repo.dirstate:
   288     if '.hgsigs' not in repo.dirstate:
   289         repo[None].add([".hgsigs"])
   289         repo[None].add([".hgsigs"])