SConstruct (4781:59a75bd0ddf4) SConstruct (4949:302707329b7e)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
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

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

113[extensions]
114style = %s/util/style.py
115
116[hooks]
117pretxncommit.style = python:style.check_whitespace
118""" % (ROOT)
119 sys.exit(1)
120
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
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

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

113[extensions]
114style = %s/util/style.py
115
116[hooks]
117pretxncommit.style = python:style.check_whitespace
118""" % (ROOT)
119 sys.exit(1)
120
121if isdir(joinpath(ROOT, '.hg')):
121if ARGUMENTS['IGNORE_STYLE'] != 'True' and isdir(joinpath(ROOT, '.hg')):
122 try:
123 from mercurial import ui
124 check_style_hook(ui.ui())
125 except ImportError:
126 pass
127
128###################################################
129#

--- 603 unchanged lines hidden ---
122 try:
123 from mercurial import ui
124 check_style_hook(ui.ui())
125 except ImportError:
126 pass
127
128###################################################
129#

--- 603 unchanged lines hidden ---