# HG changeset patch
# User Adrian Buehlmann <[email protected]>
# Date 1247411546 -7200
# Node ID c4efd157b4f98168dd6f28cde0ab9606fdea52de
# Parent b3870f1d96afa24bdd0789c5f7d44f78205b7599
thgtaskbar: do not remove .hg/thgstatus if it contains '@@noicons'
diff --git a/thgtaskbar.py b/thgtaskbar.py
--- a/thgtaskbar.py
+++ b/thgtaskbar.py
@@ -304,8 +304,13 @@ def remove(args):
roots, notifypaths = getrepos([path])
if roots:
for r in sorted(roots):
+ tfn = os.path.join(r, '.hg', 'thgstatus')
try:
- os.remove(os.path.join(r, '.hg', 'thgstatus'))
+ f = open(tfn, 'rb')
+ e = f.readline()
+ f.close()
+ if e != '@@noicons':
+ os.remove(tfn)
except OSError:
pass
if notifypaths:
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop