| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2009 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 """Wrapper script around Rietveld's upload.py that groups files into | 6 """Wrapper script around Rietveld's upload.py that groups files into |
| 7 changelists.""" | 7 changelists.""" |
| 8 | 8 |
| 9 import getpass | 9 import getpass |
| 10 import os | 10 import os |
| 11 import random | 11 import random |
| 12 import re | 12 import re |
| 13 import shutil | 13 import shutil |
| 14 import string | 14 import string |
| 15 import subprocess | 15 import subprocess |
| 16 import sys | 16 import sys |
| 17 import tempfile | 17 import tempfile |
| 18 import upload | 18 import upload |
| 19 import urllib2 | 19 import urllib2 |
| 20 | 20 |
| 21 import breakpad |
| 22 |
| 21 # gcl now depends on gclient. | 23 # gcl now depends on gclient. |
| 22 from scm import SVN | 24 from scm import SVN |
| 23 import gclient_utils | 25 import gclient_utils |
| 24 | 26 |
| 25 __version__ = '1.1.2' | 27 __version__ = '1.1.2' |
| 26 | 28 |
| 27 | 29 |
| 28 CODEREVIEW_SETTINGS = { | 30 CODEREVIEW_SETTINGS = { |
| 29 # Default values. | 31 # Default values. |
| 30 "CODE_REVIEW_SERVER": "codereview.chromium.org", | 32 "CODE_REVIEW_SERVER": "codereview.chromium.org", |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 return 0 | 1285 return 0 |
| 1284 args =["svn", command] | 1286 args =["svn", command] |
| 1285 root = GetRepositoryRoot() | 1287 root = GetRepositoryRoot() |
| 1286 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) | 1288 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) |
| 1287 RunShell(args, True) | 1289 RunShell(args, True) |
| 1288 return 0 | 1290 return 0 |
| 1289 | 1291 |
| 1290 | 1292 |
| 1291 if __name__ == "__main__": | 1293 if __name__ == "__main__": |
| 1292 sys.exit(main()) | 1294 sys.exit(main()) |
| OLD | NEW |