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

Side by Side Diff: third_party/upload.py

Issue 2488823002: Default to not using --find-copies-harder (Closed)
Patch Set: Created 4 years, 1 month 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/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 # 3 #
4 # Copyright 2007 Google Inc. 4 # Copyright 2007 Google Inc.
5 # 5 #
6 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License. 7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at 8 # You may obtain a copy of the License at
9 # 9 #
10 # http://www.apache.org/licenses/LICENSE-2.0 10 # http://www.apache.org/licenses/LICENSE-2.0
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 % ", ".join(VCS_SHORT_NAMES))) 667 % ", ".join(VCS_SHORT_NAMES)))
668 group.add_option("--emulate_svn_auto_props", action="store_true", 668 group.add_option("--emulate_svn_auto_props", action="store_true",
669 dest="emulate_svn_auto_props", default=False, 669 dest="emulate_svn_auto_props", default=False,
670 help=("Emulate Subversion's auto properties feature.")) 670 help=("Emulate Subversion's auto properties feature."))
671 # Git-specific 671 # Git-specific
672 group = parser.add_option_group("Git-specific options") 672 group = parser.add_option_group("Git-specific options")
673 group.add_option("--git_similarity", action="store", dest="git_similarity", 673 group.add_option("--git_similarity", action="store", dest="git_similarity",
674 metavar="SIM", type="int", default=50, 674 metavar="SIM", type="int", default=50,
675 help=("Set the minimum similarity percentage for detecting " 675 help=("Set the minimum similarity percentage for detecting "
676 "renames and copies. See `git diff -C`. (default 50).")) 676 "renames and copies. See `git diff -C`. (default 50)."))
677 group.add_option("--git_only_search_patch", action="store_false", default=True, 677 group.add_option("--git_find_copies_harder", action="store_true", default=False,
678 dest='git_find_copies_harder', 678 dest='git_find_copies_harder',
679 help="Removes --find-copies-harder when seaching for copies") 679 help="Adds --find-copies-harder when seaching for copies")
680 group.add_option("--git_no_find_copies", action="store_false", default=True, 680 group.add_option("--git_no_find_copies", action="store_false", default=True,
681 dest="git_find_copies", 681 dest="git_find_copies",
682 help=("Prevents git from looking for copies (default off).")) 682 help=("Prevents git from looking for copies (default off)."))
683 # Perforce-specific 683 # Perforce-specific
684 group = parser.add_option_group("Perforce-specific options " 684 group = parser.add_option_group("Perforce-specific options "
685 "(overrides P4 environment variables)") 685 "(overrides P4 environment variables)")
686 group.add_option("--p4_port", action="store", dest="p4_port", 686 group.add_option("--p4_port", action="store", dest="p4_port",
687 metavar="P4_PORT", default=None, 687 metavar="P4_PORT", default=None,
688 help=("Perforce server and port (optional)")) 688 help=("Perforce server and port (optional)"))
689 group.add_option("--p4_changelist", action="store", dest="p4_changelist", 689 group.add_option("--p4_changelist", action="store", dest="p4_changelist",
(...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 print 2531 print
2532 StatusUpdate("Interrupted.") 2532 StatusUpdate("Interrupted.")
2533 sys.exit(1) 2533 sys.exit(1)
2534 except auth.AuthenticationError as e: 2534 except auth.AuthenticationError as e:
2535 print(e, file=sys.stderr) 2535 print(e, file=sys.stderr)
2536 sys.exit(1) 2536 sys.exit(1)
2537 2537
2538 2538
2539 if __name__ == "__main__": 2539 if __name__ == "__main__":
2540 main() 2540 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