Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: git_cl.py

Issue 2077773003: Bump git-cl version to 2.0, since we now support Gerrit. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Copyright (C) 2008 Evan Martin <martine@danga.com> 6 # Copyright (C) 2008 Evan Martin <martine@danga.com>
7 7
8 """A git-command for integrating reviews on Rietveld and Gerrit.""" 8 """A git-command for integrating reviews on Rietveld and Gerrit."""
9 9
10 from __future__ import print_function 10 from __future__ import print_function
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 import git_footers 55 import git_footers
56 import owners 56 import owners
57 import owners_finder 57 import owners_finder
58 import presubmit_support 58 import presubmit_support
59 import rietveld 59 import rietveld
60 import scm 60 import scm
61 import subcommand 61 import subcommand
62 import subprocess2 62 import subprocess2
63 import watchlists 63 import watchlists
64 64
65 __version__ = '1.0' 65 __version__ = '2.0'
66 66
67 DEFAULT_SERVER = 'https://codereview.appspot.com' 67 DEFAULT_SERVER = 'https://codereview.appspot.com'
68 POSTUPSTREAM_HOOK_PATTERN = '.git/hooks/post-cl-%s' 68 POSTUPSTREAM_HOOK_PATTERN = '.git/hooks/post-cl-%s'
69 DESCRIPTION_BACKUP_FILE = '~/.git_cl_description_backup' 69 DESCRIPTION_BACKUP_FILE = '~/.git_cl_description_backup'
70 GIT_INSTRUCTIONS_URL = 'http://code.google.com/p/chromium/wiki/UsingGit' 70 GIT_INSTRUCTIONS_URL = 'http://code.google.com/p/chromium/wiki/UsingGit'
71 REFS_THAT_ALIAS_TO_OTHER_REFS = { 71 REFS_THAT_ALIAS_TO_OTHER_REFS = {
72 'refs/remotes/origin/lkgr': 'refs/remotes/origin/master', 72 'refs/remotes/origin/lkgr': 'refs/remotes/origin/master',
73 'refs/remotes/origin/lkcr': 'refs/remotes/origin/master', 73 'refs/remotes/origin/lkcr': 'refs/remotes/origin/master',
74 } 74 }
75 75
(...skipping 4944 matching lines...) Expand 10 before | Expand all | Expand 10 after
5020 if __name__ == '__main__': 5020 if __name__ == '__main__':
5021 # These affect sys.stdout so do it outside of main() to simplify mocks in 5021 # These affect sys.stdout so do it outside of main() to simplify mocks in
5022 # unit testing. 5022 # unit testing.
5023 fix_encoding.fix_encoding() 5023 fix_encoding.fix_encoding()
5024 setup_color.init() 5024 setup_color.init()
5025 try: 5025 try:
5026 sys.exit(main(sys.argv[1:])) 5026 sys.exit(main(sys.argv[1:]))
5027 except KeyboardInterrupt: 5027 except KeyboardInterrupt:
5028 sys.stderr.write('interrupted\n') 5028 sys.stderr.write('interrupted\n')
5029 sys.exit(1) 5029 sys.exit(1)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698