hgext/keyword.py
changeset 47711 b492bc018011
parent 45957 89a2afe31e82
child 47736 b9086ec4d28b
equal deleted inserted replaced
47710:3148204e649e 47711:b492bc018011
   354                 self.ui.note(msg % f)
   354                 self.ui.note(msg % f)
   355                 fp = self.repo.wvfs(f, b"wb", atomictemp=True)
   355                 fp = self.repo.wvfs(f, b"wb", atomictemp=True)
   356                 fp.write(data)
   356                 fp.write(data)
   357                 fp.close()
   357                 fp.close()
   358                 if kwcmd:
   358                 if kwcmd:
   359                     self.repo.dirstate.normal(f)
   359                     self.repo.dirstate.set_clean(f)
   360                 elif self.postcommit:
   360                 elif self.postcommit:
   361                     self.repo.dirstate.normallookup(f)
   361                     self.repo.dirstate.normallookup(f)
   362 
   362 
   363     def shrink(self, fname, text):
   363     def shrink(self, fname, text):
   364         '''Returns text with all keyword substitutions removed.'''
   364         '''Returns text with all keyword substitutions removed.'''