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

Side by Side Diff: trychange.py

Issue 10915072: add --force option for presubmit command (Closed) Base URL: https://git.chromium.org/chromium/tools/depot_tools.git@master
Patch Set: Created 8 years, 3 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 | « git_cl.py ('k') | 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Client-side script to send a try job to the try server. It communicates to 6 """Client-side script to send a try job to the try server. It communicates to
7 the try server by either writting to a svn repository or by directly connecting 7 the try server by either writting to a svn repository or by directly connecting
8 to the server by HTTP. 8 to the server by HTTP.
9 """ 9 """
10 10
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 changed_files, 812 changed_files,
813 options.issue, 813 options.issue,
814 options.patchset, 814 options.patchset,
815 options.email) 815 options.email)
816 options.bot = presubmit_support.DoGetTrySlaves( 816 options.bot = presubmit_support.DoGetTrySlaves(
817 change, 817 change,
818 checkouts[0].GetFileNames(), 818 checkouts[0].GetFileNames(),
819 checkouts[0].checkout_root, 819 checkouts[0].checkout_root,
820 root_presubmit, 820 root_presubmit,
821 options.project, 821 options.project,
822 False, 822 options.verbose,
823 sys.stdout) 823 sys.stdout)
824 except ImportError: 824 except ImportError:
825 pass 825 pass
826 if options.testfilter: 826 if options.testfilter:
827 bots = set() 827 bots = set()
828 for bot in options.bot: 828 for bot in options.bot:
829 assert ',' not in bot 829 assert ',' not in bot
830 if bot.endswith(':compile'): 830 if bot.endswith(':compile'):
831 # Skip over compile-only builders for now. 831 # Skip over compile-only builders for now.
832 continue 832 continue
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 return 1 866 return 1
867 except (gclient_utils.Error, subprocess2.CalledProcessError), e: 867 except (gclient_utils.Error, subprocess2.CalledProcessError), e:
868 print >> sys.stderr, e 868 print >> sys.stderr, e
869 return 1 869 return 1
870 return 0 870 return 0
871 871
872 872
873 if __name__ == "__main__": 873 if __name__ == "__main__":
874 fix_encoding.fix_encoding() 874 fix_encoding.fix_encoding()
875 sys.exit(TryChange(None, None, False)) 875 sys.exit(TryChange(None, None, False))
OLDNEW
« no previous file with comments | « git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698