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

rpcserver: care for readonly repos

Patch from Adrian

Changeset dbeed603346d

Parent 8ad2d6462cee

by Steve Borho

Changes to one file · Browse files at dbeed603346d Showing diff from parent 8ad2d6462cee Diff from another changeset...

Change 1 of 1 Show Entire File taskbar.py Stacked
 
202
203
204
 
205
206
207
208
 
 
 
 
 
 
 
 
 
209
210
211
 
202
203
204
205
206
 
 
 
207
208
209
210
211
212
213
214
215
216
217
218
@@ -202,10 +202,17 @@
  roots, notifypaths = getrepos(batch)   if roots:   _ui = ui.ui(); + failedroots = set()   for r in sorted(roots): - logmsg('Updating ' + r) - shlib.update_thgstatus(_ui, r, wait=False) - shlib.shell_notify([r]) + try: + shlib.update_thgstatus(_ui, r, wait=False) + shlib.shell_notify([r]) + logmsg('Updated ' + r) + except IOError: + print "IOError on updating %s (check permissions)" % r + logmsg('Failed updating %s (check permissions)' % r) + failedroots.add(r) + notifypaths -= failedroots   if notifypaths:   time.sleep(2)   shlib.shell_notify(list(notifypaths))