Changeset d4bb3d7c4d60…
Parent 39a7610867c6…
by
Changes to one file · Browse files at d4bb3d7c4d60 Showing diff from parent 39a7610867c6 Diff from another changeset...
@@ -317,9 +317,15 @@ 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'))
- except OSError:
+ f = open(tfn, 'rb')
+ e = f.readline()
+ f.close()
+ if not e.startswith('@@noicons'):
+ os.remove(tfn)
+ except (IOError, OSError):
+ print "IOError or OSError while trying to remove %s" % tfn
pass
if notifypaths:
shlib.shell_notify(list(notifypaths))
|
Loading...