summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-12-30 12:53:56 -0500
committerNathan Binkert <nate@binkert.org>2010-12-30 12:53:56 -0500
commitfe6574ecc07188b39d91a12dde34b1bd2258da02 (patch)
treecdd661adceb4f935ffccb2b25ae786ba2250d146 /SConstruct
parent04f5bb34ce0475a3fee8e3c104413f79668e0ab6 (diff)
downloadgem5-fe6574ecc07188b39d91a12dde34b1bd2258da02.tar.xz
style: make style hook work with pre-qrefresh and update to use new code
clean up the code a little bit while we're at it. I recommend that everyone adds the pre-qrefresh hook below since it will make qref run the style hook and not just commit/qpush [extensions] style = <m5 path>/util/style.py [hooks] pretxncommit.style = python:style.check_whitespace pre-qrefresh.style = python:style.check_whitespace
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct1
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 817e7b921..07ddfd540 100644
--- a/SConstruct
+++ b/SConstruct
@@ -165,6 +165,7 @@ style = %s/util/style.py
[hooks]
pretxncommit.style = python:style.check_whitespace
+pre-qrefresh.style = python:style.check_whitespace
""" % (main.root)
mercurial_bin_not_found = """