| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Unit tests for gclient_scm.py.""" | 6 """Unit tests for gclient_scm.py.""" |
| 7 | 7 |
| 8 # pylint: disable=E1103 | 8 # pylint: disable=E1103 |
| 9 | 9 |
| 10 # Import before super_mox to keep valid references. | 10 # Import before super_mox to keep valid references. |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 678 class OptionsObject(object): | 678 class OptionsObject(object): |
| 679 def __init__(self, verbose=False, revision=None): | 679 def __init__(self, verbose=False, revision=None): |
| 680 self.verbose = verbose | 680 self.verbose = verbose |
| 681 self.revision = revision | 681 self.revision = revision |
| 682 self.manually_grab_svn_rev = True | 682 self.manually_grab_svn_rev = True |
| 683 self.deps_os = None | 683 self.deps_os = None |
| 684 self.force = False | 684 self.force = False |
| 685 self.reset = False | 685 self.reset = False |
| 686 self.nohooks = False | 686 self.nohooks = False |
| 687 self.upstream = False | 687 self.upstream = False |
| 688 self.cache_dir = None |
| 688 self.merge = False | 689 self.merge = False |
| 689 self.jobs = 1 | 690 self.jobs = 1 |
| 690 self.delete_unversioned_trees = False | 691 self.delete_unversioned_trees = False |
| 691 | 692 |
| 692 sample_git_import = """blob | 693 sample_git_import = """blob |
| 693 mark :1 | 694 mark :1 |
| 694 data 6 | 695 data 6 |
| 695 Hello | 696 Hello |
| 696 | 697 |
| 697 blob | 698 blob |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 | 1194 |
| 1194 if __name__ == '__main__': | 1195 if __name__ == '__main__': |
| 1195 if '-v' in sys.argv: | 1196 if '-v' in sys.argv: |
| 1196 logging.basicConfig( | 1197 logging.basicConfig( |
| 1197 level=logging.DEBUG, | 1198 level=logging.DEBUG, |
| 1198 format='%(asctime).19s %(levelname)s %(filename)s:' | 1199 format='%(asctime).19s %(levelname)s %(filename)s:' |
| 1199 '%(lineno)s %(message)s') | 1200 '%(lineno)s %(message)s') |
| 1200 unittest.main() | 1201 unittest.main() |
| 1201 | 1202 |
| 1202 # vim: ts=2:sw=2:tw=80:et: | 1203 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |