hgext/gpg.py
changeset 25149 3f0744eeaeaf
parent 23877 7cc77030c557
child 25186 80c5b2666a96
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
   253         repo.vfs.append("localsigs", sigmessage)
   253         repo.vfs.append("localsigs", sigmessage)
   254         return
   254         return
   255 
   255 
   256     if not opts["force"]:
   256     if not opts["force"]:
   257         msigs = match.exact(repo.root, '', ['.hgsigs'])
   257         msigs = match.exact(repo.root, '', ['.hgsigs'])
   258         if util.any(repo.status(match=msigs, unknown=True, ignored=True)):
   258         if any(repo.status(match=msigs, unknown=True, ignored=True)):
   259             raise util.Abort(_("working copy of .hgsigs is changed "),
   259             raise util.Abort(_("working copy of .hgsigs is changed "),
   260                              hint=_("please commit .hgsigs manually"))
   260                              hint=_("please commit .hgsigs manually"))
   261 
   261 
   262     sigsfile = repo.wfile(".hgsigs", "ab")
   262     sigsfile = repo.wfile(".hgsigs", "ab")
   263     sigsfile.write(sigmessage)
   263     sigsfile.write(sigmessage)