tortoisehg / stable (http://tortoisehg.bitbucket.org/)
TortoiseHg repository. Main line of development in "default" branch. Releases, bugfixes, and documentation improvements in "stable" branch.
Clone this repository (size: 23.9 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/tortoisehg/stable/
| commit 3094: | 27ed9f9ad55a |
| parent 3093: | 3c9b044556b7 |
| branch: | default |
nautilus: only invalidate cache when notified within repo
Fixes backtraces from hgtk commands outside repositories.
Changed (Δ21 bytes):
raw changeset »
contrib/nautilus-thg.py (2 lines added, 1 lines removed)
Up to file-list contrib/nautilus-thg.py:
| … | … | @@ -273,7 +273,8 @@ class HgExtension(nautilus.MenuProvider, |
273 |
273 |
return |
274 |
274 |
root = os.path.commonprefix(files) |
275 |
275 |
root = paths.find_root(root) |
276 |
|
|
276 |
if root: |
|
277 |
self.invalidate(files, root) |
|
277 |
278 |
|
278 |
279 |
def invalidate(self, paths, root = ''): |
279 |
280 |
started = bool(self.inv_dirs) |
