[PATCH 1 of 8] py3: make contrib/check-commit use absolute_import
Pulkit Goyal
7895pulkit at gmail.com
Thu May 12 20:54:54 UTC 2016
# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463085717 -19800
# Fri May 13 02:11:57 2016 +0530
# Node ID b203e6318c6e6bce968d41990efebc8c17ca49ec
# Parent df838803c1d487e4601f96c6cfd85e6ad4f6291f
py3: make contrib/check-commit use absolute_import
diff --git a/contrib/check-commit b/contrib/check-commit
--- a/contrib/check-commit
+++ b/contrib/check-commit
@@ -15,7 +15,11 @@
#
# See also: https://mercurial-scm.org/wiki/ContributingChanges
-import re, sys, os
+from __future__ import absolute_import
+
+import os
+import re
+import sys
commitheader = r"^(?:# [^\n]*\n)*"
afterheader = commitheader + r"(?!#)"
More information about the Mercurial-devel
mailing list