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 from third_party import upload |
19 import urllib2 | 19 import urllib2 |
20 | 20 |
21 import breakpad | 21 import breakpad |
22 | 22 |
23 # gcl now depends on gclient. | 23 # gcl now depends on gclient. |
24 from scm import SVN | 24 from scm import SVN |
25 import gclient_utils | 25 import gclient_utils |
26 | 26 |
27 __version__ = '1.1.3' | 27 __version__ = '1.1.3' |
28 | 28 |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 return 0 | 1205 return 0 |
1206 args =["svn", command] | 1206 args =["svn", command] |
1207 root = GetRepositoryRoot() | 1207 root = GetRepositoryRoot() |
1208 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) | 1208 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) |
1209 RunShell(args, True) | 1209 RunShell(args, True) |
1210 return 0 | 1210 return 0 |
1211 | 1211 |
1212 | 1212 |
1213 if __name__ == "__main__": | 1213 if __name__ == "__main__": |
1214 sys.exit(main()) | 1214 sys.exit(main()) |
OLD | NEW |