From 0720878a198e950691fbde0ad3c01a649ea94099 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Tue, 30 Jun 2020 16:40:34 +0200 Subject: [PATCH] make scmhooks compatible between python 2 and 3 --- .../src/main/resources/sonia/scm/python/scmhooks.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py index 1ed5d520f0..eb7718bb87 100644 --- a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py +++ b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py @@ -90,7 +90,6 @@ def callHookUrl(ui, repo, hooktype, node): ui.debug( b"send scm-hook to " + url.encode() + b" and " + node + b"\n" ) values = {'node': node.decode("utf-8"), 'challenge': challenge, 'token': token, 'repositoryPath': repo.root, 'repositoryId': repositoryId} conn = client.post(url, values) - ui.warn(b"some thing strange") if 200 <= conn.code < 300: ui.debug( b"scm-hook " + hooktype + b" success with status code " + str(conn.code).encode() + b"\n" ) printMessages(ui, conn)