changeset 280:a98e76fa58f2

* Avoid reporting failure when hg incoming shows a warning (as is the case when site cert could not be verified)
author Chris Cannam
date Thu, 17 Feb 2011 12:10:09 +0000
parents cbfc1930289a
children 1ec306df738e
files mainwindow.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mainwindow.cpp	Thu Feb 10 18:49:47 2011 +0000
+++ b/mainwindow.cpp	Thu Feb 17 12:10:09 2011 +0000
@@ -1695,7 +1695,7 @@
     case ACT_INCOMING:
         // returns non-zero code and no output if the check was
         // successful but there are no changes pending
-        if (output.trimmed() == "") {
+        if (output.replace(QRegExp("(^|\\n)warning: [^\\n]*\\n"), "").trimmed() == "") {
             showIncoming("");
             return;
         }