changeset 9aff7c283fef in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=9aff7c283fef
description:
        Ignore stderr when applying the patch fails
diffstat:

 reviewbot.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r e078306e0d02 -r 9aff7c283fef reviewbot.py
--- a/reviewbot.py      Fri May 07 10:06:09 2021 +0200
+++ b/reviewbot.py      Fri May 21 16:03:38 2021 +0200
@@ -70,7 +70,8 @@
     patch_url = (CODEREVIEW_URL
         + '/'.join(['', 'download', 'issue%s_%s.diff' % (issue_id, patchset)]))
     subprocess.check_call(
-        ['hg', 'import', '-q', '--cwd', repo_dir, '--no-commit', patch_url])
+        ['hg', 'import', '-q', '--cwd', repo_dir, '--no-commit', patch_url],
+        stderr=subprocess.DEVNULL)
     # Run status to create new subrepo
     subprocess.check_call(
         ['hg', 'status', '-q', '--subrepos', '--cwd', repo_dir],

Reply via email to