# HG changeset patch
# User Adrian Buehlmann <[email protected]>
# Date 1244816643 -7200
# Node ID a1c3b96184edbe8fc818d0111b219c8219b5c146
# Parent 118563e3c69e8a75bb262c7a6986f11f9ee4a4a4
thgtaskbar: mercurial now throws OSError
on read-only repos
diff --git a/thgtaskbar.py b/thgtaskbar.py
--- a/thgtaskbar.py
+++ b/thgtaskbar.py
@@ -242,8 +242,8 @@ def update_batch(batch):
shlib.update_thgstatus(_ui, r, wait=False)
shlib.shell_notify([r])
logger.msg('Updated ' + r)
- except IOError:
- print "IOError on updating %s (check permissions)" % r
+ except (IOError, OSError):
+ print "IOError or OSError on updating %s (check permissions)"
% r
logger.msg('Failed updating %s (check permissions)' % r)
failedroots.add(r)
notifypaths -= failedroots
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop