hgext/gpg.py
changeset 1676 0690d0f202e1
parent 1618 ff339dd21976
child 1681 98eef041f9c7
equal deleted inserted replaced
1675:03191e1a4230 1676:0690d0f202e1
   161         return
   161         return
   162 
   162 
   163     for x in repo.changes():
   163     for x in repo.changes():
   164         if ".hgsigs" in x and not opts["force"]:
   164         if ".hgsigs" in x and not opts["force"]:
   165             raise util.Abort("working copy of .hgsigs is changed "
   165             raise util.Abort("working copy of .hgsigs is changed "
   166                              "(please commit .hgsigs manually"
   166                              "(please commit .hgsigs manually "
   167                              "or use --force)")
   167                              "or use --force)")
   168 
   168 
   169     repo.wfile(".hgsigs", "ab").write(sigmessage)
   169     repo.wfile(".hgsigs", "ab").write(sigmessage)
   170 
   170 
   171     if repo.dirstate.state(".hgsigs") == '?':
   171     if repo.dirstate.state(".hgsigs") == '?':