Commits

Anonymous committed 0b3af05

check_hook should be quiet unless --verbose or there is a problem.

Comments (0)

Files changed (1)

     '''blocks commits/changesets containing tabs or trailing whitespace'''
 
     if hooktype == 'pretxncommit':
-        ui.status('checkfiles: checking commit for tabs or trailing whitespace...\n')
+        ui.note('checkfiles: checking commit for tabs or trailing whitespace...\n')
         cf = CheckFiles(ui, repo, repo.changectx(node))
         return cf.check()
 
     elif hooktype == 'pretxnchangegroup':
         from mercurial import cmdutil
 
-        ui.status('checkfiles: checking incoming changes for tabs or trailing whitespace...\n')
+        ui.note('checkfiles: checking incoming changes for tabs or trailing whitespace...\n')
         cf = CheckFiles(ui, repo, None)
         fail = False
 
                      [('f', 'fixup', None, 'fix files by replacing tabs and removing trailing whitespace'),
                       ('t', 'tabsize', 4, 'set the tab length')],
                      'hg checkfiles [options]')
-}
+}