projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cb32aa
)
style: Don't try to fix files that should be ignored.
author
Nathan Binkert
<nate@binkert.org>
Wed, 15 Aug 2007 01:21:23 +0000
(18:21 -0700)
committer
Nathan Binkert
<nate@binkert.org>
Wed, 15 Aug 2007 01:21:23 +0000
(18:21 -0700)
The style hook was ignoring new files, but processing all modified
files.
--HG--
extra : convert_revision :
97400c24a12103d7ac3d4f69b026853816c39d72
util/style.py
patch
|
blob
|
history
diff --git
a/util/style.py
b/util/style.py
index 3d733638838b266a441bf76a5f4496b31fe8b52b..866bef9b8f77fa70d16ac67fa30d7f15fdee7b6b 100644
(file)
--- a/
util/style.py
+++ b/
util/style.py
@@
-298,6
+298,9
@@
def check_whitespace(ui, repo, hooktype, node, parent1, parent2):
wctx = repo.workingctx()
for fname in modified:
+ if not whitespace_file(fname):
+ continue
+
fctx = wctx.filectx(fname)
pctx = fctx.parents()
assert len(pctx) in (1, 2)