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 |
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 return 0 | 1293 return 0 |
1294 args =["svn", command] | 1294 args =["svn", command] |
1295 root = GetRepositoryRoot() | 1295 root = GetRepositoryRoot() |
1296 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) | 1296 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) |
1297 RunShell(args, True) | 1297 RunShell(args, True) |
1298 return 0 | 1298 return 0 |
1299 | 1299 |
1300 | 1300 |
1301 if __name__ == "__main__": | 1301 if __name__ == "__main__": |
1302 sys.exit(main()) | 1302 sys.exit(main()) |
OLD | NEW |