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

Side by Side Diff: gcl.py

Issue 1997003: Fix a typo in gcl.py.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 10 years, 7 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 | « 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/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
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 fail_on_not_found = command != "try" and command != "change" 1215 fail_on_not_found = command != "try" and command != "change"
1216 if command == "try" and changename.find(',') != -1: 1216 if command == "try" and changename.find(',') != -1:
1217 change_info = LoadChangelistInfoForMultiple(changename, GetRepositoryRoot(), 1217 change_info = LoadChangelistInfoForMultiple(changename, GetRepositoryRoot(),
1218 True, True) 1218 True, True)
1219 else: 1219 else:
1220 change_info = ChangeInfo.Load(changename, GetRepositoryRoot(), 1220 change_info = ChangeInfo.Load(changename, GetRepositoryRoot(),
1221 fail_on_not_found, True) 1221 fail_on_not_found, True)
1222 1222
1223 if command == "change": 1223 if command == "change":
1224 Change(change_info, argv[3:]) 1224 Change(change_info, argv[3:])
1225 if command == "description": 1225 elif command == "description":
1226 print change_info.description 1226 print change_info.description
1227 elif command == "lint": 1227 elif command == "lint":
1228 Lint(change_info, argv[3:]) 1228 Lint(change_info, argv[3:])
1229 elif command == "upload": 1229 elif command == "upload":
1230 UploadCL(change_info, argv[3:]) 1230 UploadCL(change_info, argv[3:])
1231 elif command == "presubmit": 1231 elif command == "presubmit":
1232 PresubmitCL(change_info) 1232 PresubmitCL(change_info)
1233 elif command in ("commit", "submit"): 1233 elif command in ("commit", "submit"):
1234 Commit(change_info, argv[3:]) 1234 Commit(change_info, argv[3:])
1235 elif command == "delete": 1235 elif command == "delete":
(...skipping 14 matching lines...) Expand all
1250 return 0 1250 return 0
1251 args =["svn", command] 1251 args =["svn", command]
1252 root = GetRepositoryRoot() 1252 root = GetRepositoryRoot()
1253 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) 1253 args.extend([os.path.join(root, x) for x in change_info.GetFileNames()])
1254 RunShell(args, True) 1254 RunShell(args, True)
1255 return 0 1255 return 0
1256 1256
1257 1257
1258 if __name__ == "__main__": 1258 if __name__ == "__main__":
1259 sys.exit(main()) 1259 sys.exit(main())
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