style.py (5792:72c3f3e914c1) style.py (6021:6df0633d883b)
1#! /usr/bin/env python
2# Copyright (c) 2006 The Regents of The University of Michigan
3# Copyright (c) 2007 The Hewlett-Packard Development Company
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 333 unchanged lines hidden (view full) ---

342 if ui.verbose:
343 ui.write(">>%s<<\n" % line[:-1])
344 fixonly.add(i)
345
346 if fixonly:
347 if prompt(fname, fixonly):
348 return True
349
1#! /usr/bin/env python
2# Copyright (c) 2006 The Regents of The University of Michigan
3# Copyright (c) 2007 The Hewlett-Packard Development Company
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 333 unchanged lines hidden (view full) ---

342 if ui.verbose:
343 ui.write(">>%s<<\n" % line[:-1])
344 fixonly.add(i)
345
346 if fixonly:
347 if prompt(fname, fixonly):
348 return True
349
350def check_whitespace(ui, repo, hooktype, node, parent1, parent2):
350def check_whitespace(ui, repo, hooktype, node, parent1, parent2, **kwargs):
351 if hooktype != 'pretxncommit':
352 raise AttributeError, \
353 "This hook is only meant for pretxncommit, not %s" % hooktype
354
355 args = { 'tabsize' : 8 }
356 do_check_whitespace(ui, repo, **args)
357
351 if hooktype != 'pretxncommit':
352 raise AttributeError, \
353 "This hook is only meant for pretxncommit, not %s" % hooktype
354
355 args = { 'tabsize' : 8 }
356 do_check_whitespace(ui, repo, **args)
357
358def check_format(ui, repo, hooktype, node, parent1, parent2):
358def check_format(ui, repo, hooktype, node, parent1, parent2, **kwargs):
359 if hooktype != 'pretxncommit':
360 raise AttributeError, \
361 "This hook is only meant for pretxncommit, not %s" % hooktype
362
363 modified, added, removed, deleted, unknown, ignore, clean = repo.status()
364
365 verbose = 0
366 stats = ValidationStats()

--- 84 unchanged lines hidden ---
359 if hooktype != 'pretxncommit':
360 raise AttributeError, \
361 "This hook is only meant for pretxncommit, not %s" % hooktype
362
363 modified, added, removed, deleted, unknown, ignore, clean = repo.status()
364
365 verbose = 0
366 stats = ValidationStats()

--- 84 unchanged lines hidden ---