Changeset 570ddfc1cb23…
Parent 3d7d0a3b4816…
by
Changes to 2 files · Browse files at 570ddfc1cb23 Showing diff from parent 3d7d0a3b4816 Diff from another changeset...
@@ -262,9 +262,11 @@ _stderr = sys.stderr
sys.stderr = errorstream
try:
+ updated_any = False
for r in sorted(roots):
try:
- shlib.update_thgstatus(_ui, r, wait=False)
+ if shlib.update_thgstatus(_ui, r, wait=False):
+ updated_any = True
shlib.shell_notify([r], noassoc=True)
logger.msg('Updated ' + r)
except (IOError, OSError):
@@ -278,7 +280,7 @@ notifypaths -= failedroots
if notifypaths:
time.sleep(2)
- shlib.shell_notify(list(notifypaths))
+ shlib.shell_notify(list(notifypaths), noassoc=not updated_any)
logger.msg('Shell notified')
errmsg = errorstream.getvalue()
if errmsg:
|
@@ -140,6 +140,7 @@ f.write(s + dn + '\n')
ui.note("%s %s\n" % (s, dn))
f.rename()
+ return update
else:
def shell_notify(paths, noassoc=False):
|
Loading...