Bug 1284366 - Hide server messages containing "REVIEWBOARD:", whether they are preceded with "remote:" or not. r?gps
--- 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)