comparison contrib/check-commit @ 29163:bf7fd815b083

py3: make contrib/check-commit use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 13 May 2016 02:11:57 +0530
parents ac4684c21f73
children 91f35b1a34cf
comparison
equal deleted inserted replaced
29162:5a3197cbe415 29163:bf7fd815b083
13 # 13 #
14 # $ BYPASS= hg commit 14 # $ BYPASS= hg commit
15 # 15 #
16 # See also: https://mercurial-scm.org/wiki/ContributingChanges 16 # See also: https://mercurial-scm.org/wiki/ContributingChanges
17 17
18 import re, sys, os 18 from __future__ import absolute_import
19
20 import os
21 import re
22 import sys
19 23
20 commitheader = r"^(?:# [^\n]*\n)*" 24 commitheader = r"^(?:# [^\n]*\n)*"
21 afterheader = commitheader + r"(?!#)" 25 afterheader = commitheader + r"(?!#)"
22 beforepatch = afterheader + r"(?!\n(?!@@))" 26 beforepatch = afterheader + r"(?!\n(?!@@))"
23 27