Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

thgrepo: improve polling for MQ status

If the repository has an 'mq' member, then poll for changes in .hg/patches/queue
(where queue folder changes occur) and also poll the series file in the current
queue folder.

Changeset 9f47f4cb9b0a

Parent d74458a39f2c

by Steve Borho

Changes to one file · Browse files at 9f47f4cb9b0a Showing diff from parent d74458a39f2c Diff from another changeset...

 
124
125
126
127
128
 
 
 
 
129
130
131
 
124
125
126
 
 
127
128
129
130
131
132
133
@@ -124,8 +124,10 @@
    def _getrepomtime(self):   'Return the last modification time for the repo' - watchedfiles = [self.repo.sjoin('00changelog.i'), - self.repo.join('patches/series')] + watchedfiles = [self.repo.sjoin('00changelog.i')] + if hasattr(self.repo, 'mq'): + watchedfiles.append(self.repo.mq.join('series')) + watchedfiles.append(self.repo.join('patches/queue'))   try:   mtime = [os.path.getmtime(wf) for wf in watchedfiles \   if os.path.isfile(wf)]