Commits

Yuya Nishihara committed 49b60be

thgrepo: check mtime of bookmarks.current to detect update (fixes #3332)

`hg bookmark [name]` touches 00changelog.i, but `hg update` to the same
revision just modifies bookmarks.current.

  • Participants
  • Parent commits 4bdd486
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/thgrepo.py

         watchedfiles = [self.repo.sjoin('00changelog.i')]
         watchedfiles.append(self.repo.sjoin('phaseroots'))
         watchedfiles.append(self.repo.join('localtags'))
+        # no need to watch 'bookmarks' because repo._bookmarks.write touches
+        # 00changelog.i (see bookmarks.bmstore.write)
+        watchedfiles.append(self.repo.join('bookmarks.current'))
         if hasattr(self.repo, 'mq'):
             watchedfiles.append(self.repo.mq.path)
             watchedfiles.append(self.repo.mq.join('series'))