1. Yuya Nishihara
  2. thg-qt-mq

Commits

Yuya Nishihara  committed 1026d3c

mq status fix

  • Participants
  • Parent commits 8cd9f52
  • Branches default

Comments (0)

Files changed (2)

File repow-mqstatus.diff

View file
  • Ignore whitespace
+# HG changeset patch
+# Date 1381931610 -32400
+# Parent 264962e7ad588abd7f60aa428cf036121493352c
+repowatcher: watch patches/status to invalidate stale applied status
+
+As of Mercurial 2.7.2, "hg qpop" writes series and status files after wlock
+released.  If repository cache is reloaded before status file is written,
+unapplied patches may be displayed as applied.
+
+diff --git a/tortoisehg/hgqt/thgrepo.py b/tortoisehg/hgqt/thgrepo.py
+--- a/tortoisehg/hgqt/thgrepo.py
++++ b/tortoisehg/hgqt/thgrepo.py
+@@ -196,6 +196,7 @@ class RepoWatcher(QObject):
+         if hasattr(self.repo, 'mq'):
+             watchedfiles.append(self.repo.mq.path)
+             watchedfiles.append(self.repo.mq.join('series'))
++            watchedfiles.append(self.repo.mq.join('status'))
+             watchedfiles.append(self.repo.mq.join('guards'))
+             watchedfiles.append(self.repo.join('patches.queue'))
+             watchedfiles.append(self.repo.join('patches.queues'))

File series

View file
  • Ignore whitespace
+repow-mqstatus.diff
 ci-checked.diff
 cmdui-height.diff
 cmdui-mark-setlogvisible.diff