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

Side by Side Diff: gcl.py

Issue 119436: Don't display the warning is not prompting anyway. (Closed)
Patch Set: Created 11 years, 6 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
« 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 # Need to import here to avoid circular dependency. 1033 # Need to import here to avoid circular dependency.
1034 import presubmit_support 1034 import presubmit_support
1035 root_presubmit = GetCachedFile('PRESUBMIT.py', use_root=True) 1035 root_presubmit = GetCachedFile('PRESUBMIT.py', use_root=True)
1036 result = presubmit_support.DoPresubmitChecks(change_info=change_info, 1036 result = presubmit_support.DoPresubmitChecks(change_info=change_info,
1037 committing=committing, 1037 committing=committing,
1038 verbose=False, 1038 verbose=False,
1039 output_stream=sys.stdout, 1039 output_stream=sys.stdout,
1040 input_stream=sys.stdin, 1040 input_stream=sys.stdin,
1041 default_presubmit=root_presubmit, 1041 default_presubmit=root_presubmit,
1042 may_prompt=may_prompt) 1042 may_prompt=may_prompt)
1043 if not result: 1043 if not result and may_prompt:
1044 print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)" 1044 print "\nPresubmit errors, can't continue (use --no_presubmit to bypass)"
1045 return result 1045 return result
1046 1046
1047 1047
1048 def Changes(): 1048 def Changes():
1049 """Print all the changelists and their files.""" 1049 """Print all the changelists and their files."""
1050 for cl in GetCLs(): 1050 for cl in GetCLs():
1051 change_info = ChangeInfo.Load(cl, True, True) 1051 change_info = ChangeInfo.Load(cl, True, True)
1052 print "\n--- Changelist " + change_info.name + ":" 1052 print "\n--- Changelist " + change_info.name + ":"
1053 for file in change_info.files: 1053 for file in change_info.files:
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 # the files. This allows commands such as 'gcl diff xxx' to work. 1157 # the files. This allows commands such as 'gcl diff xxx' to work.
1158 args =["svn", command] 1158 args =["svn", command]
1159 root = GetRepositoryRoot() 1159 root = GetRepositoryRoot()
1160 args.extend([os.path.join(root, x) for x in change_info.FileList()]) 1160 args.extend([os.path.join(root, x) for x in change_info.FileList()])
1161 RunShell(args, True) 1161 RunShell(args, True)
1162 return 0 1162 return 0
1163 1163
1164 1164
1165 if __name__ == "__main__": 1165 if __name__ == "__main__":
1166 sys.exit(main()) 1166 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