OLD | NEW |
| (Empty) |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 | |
6 class Context(object): | |
7 """Class to hold context about a the current code review and checkout.""" | |
8 def __init__(self, rietveld, checkout, status, server_hooks_missing=False): | |
9 """ | |
10 Args: | |
11 rietveld: Instance of rietveld.Rietveld. | |
12 checkout: Instance of checkout.SvnCheckout | |
13 status: Instance of async_push.AsyncPush. | |
14 server_hooks_missing: True if the project's SVN repository does not have | |
15 server-side hooks configured. | |
16 """ | |
17 self.rietveld = rietveld | |
18 self.checkout = checkout | |
19 self.status = status | |
20 self.server_hooks_missing = server_hooks_missing | |
OLD | NEW |