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

workbench: do not reload automagically

Previously, the model was unconditionally reloaded when it detected a modified
repository (includes dirstate changes!).

IMHO, this is way too intrusive. Reloading might be quite costly as we know.
And currently, it even flips the selected cset and scrolls to top (which can sure
be improved, but it's still quite intrusive).

Let's demote this to a simple message in the status bar for now, which recommends
to reload the repo model.

TODO: improve update use case (implies reload, due to changed parent cset and
working dir).

Changeset 102b16a78c9d

Parent 6a030db6b8d7

by Adrian Buehlmann

Changes to one file · Browse files at 102b16a78c9d Showing diff from parent 6a030db6b8d7 Diff from another changeset...

 
104
105
106
107
108
109
110
 
 
111
112
113
 
104
105
106
 
 
 
 
107
108
109
110
111
@@ -104,10 +104,8 @@
  return   mtime = self._getrepomtime()   if mtime > self._repodate: - self.statusBar().showMessage("Repository has been modified, " - "reloading...", 2000) - - self.reload() + self.statusBar().showMessage("Repository has been modified " + "(reloading is recommended)")     def loading(self):   return self._loading