Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

cachethg and nautilus: catch more errors

example: IOError when .hg/store is not readable

Changeset 50522cf1202b

Parent add9b30f5cf4

by Simon Heimberg

Changes to 2 files · Browse files at 50522cf1202b Showing diff from parent add9b30f5cf4 Diff from another changeset...

 
120
121
122
 
 
 
123
124
125
 
120
121
122
123
124
125
126
127
128
@@ -120,6 +120,9 @@
  self.cacheroot = None   self.cacherepo = None   return None + except StandardError, e: + print e + return None     def run_dialog(self, menuitem, hgcmd, cwd = None):   '''
 
106
107
108
109
110
 
 
 
 
 
 
 
 
 
 
 
111
112
113
 
106
107
108
 
 
109
110
111
112
113
114
115
116
117
118
119
120
121
122
@@ -106,8 +106,17 @@
  except RepoError:   # We aren't in a working tree   print "%s: not in repo" % pdir - overlay_cache[path] = UNKNOWN - return NOT_IN_REPO + if not overlay_cache: + cache_tick_count = GetTickCount() + overlay_cache[pdir] = IGNORED + return IGNORED + except StandardError, e: + print "error while handling %s:" % pdir + print e + if not overlay_cache: + cache_tick_count = GetTickCount() + overlay_cache[pdir] = UNKNOWN + return UNKNOWN   # get file status   tc1 = GetTickCount()