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

Side by Side Diff: git_cl.py

Issue 6792060: Make more tests pass on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « PRESUBMIT.py ('k') | scm.py » ('j') | scm.py » ('J')
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) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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.""" 8 """A git-command for integrating reviews on Rietveld."""
9 9
10 import errno 10 import errno
11 import logging 11 import logging
12 import optparse 12 import optparse
13 import os 13 import os
14 import re 14 import re
15 import subprocess 15 import subprocess
16 import sys 16 import sys
17 import tempfile 17 import tempfile
18 import textwrap 18 import textwrap
19 import urlparse 19 import urlparse
20 import urllib2 20 import urllib2
21 21
22 try: 22 try:
23 import readline # pylint: disable=W0611 23 import readline # pylint: disable=F0401,W0611
24 except ImportError: 24 except ImportError:
25 pass 25 pass
26 26
27 try: 27 try:
28 import simplejson as json # pylint: disable=F0401 28 import simplejson as json # pylint: disable=F0401
29 except ImportError: 29 except ImportError:
30 try: 30 try:
31 import json # pylint: disable=F0401 31 import json # pylint: disable=F0401
32 except ImportError: 32 except ImportError:
33 # Fall back to the packaged version. 33 # Fall back to the packaged version.
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))) 1424 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)))
1425 1425
1426 # Not a known command. Default to help. 1426 # Not a known command. Default to help.
1427 GenUsage(parser, 'help') 1427 GenUsage(parser, 'help')
1428 return CMDhelp(parser, argv) 1428 return CMDhelp(parser, argv)
1429 1429
1430 1430
1431 if __name__ == '__main__': 1431 if __name__ == '__main__':
1432 fix_encoding.fix_encoding() 1432 fix_encoding.fix_encoding()
1433 sys.exit(main(sys.argv[1:])) 1433 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | scm.py » ('j') | scm.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698