Bug 1284366 - Hide server messages containing "REVIEWBOARD:", whether they are preceded with "remote:" or not. r?gps draft
authorMike Hommey <mh@glandium.org>
Tue, 05 Jul 2016 09:56:10 +0900
changeset 8738 4d6a323327f43cce9251099b1312a8a39fe6aae4
parent 8737 8b7ba7c72484847332ad49cb0222305bc3d0be2b
push id979
push userbmo:mh+mozilla@glandium.org
push dateTue, 05 Jul 2016 00:56:34 +0000
reviewersgps
bugs1284366
Bug 1284366 - Hide server messages containing "REVIEWBOARD:", whether they are preceded with "remote:" or not. r?gps
git/commands/git-mozreview
--- a/git/commands/git-mozreview
+++ b/git/commands/git-mozreview
@@ -381,17 +381,17 @@ def push_command(args):
                                     stderr=subprocess.STDOUT)
 
             # Filter "remote: REVIEWBOARD: " lines from output because they are
             # the server advertisement about requiring a special client
             # extension to push and we satisfy those requirements.
             for l in proc.stdout:
                 if l.startswith('>result> '):
                     commits.append(l.split()[1:])
-                elif not l.startswith('remote: REVIEWBOARD: '):
+                elif 'REVIEWBOARD: ' not in l:
                     ui.write(l)
 
             res = proc.wait()
         except Exception as e:
             raise AbortError('error while performing cinnabar push: %s' %
                              e.message)
     finally:
         os.unlink(path)