Changeset 85718 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Scripts/SetupGit.py
- Timestamp:
- Aug 12, 2020 4:09:12 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139865
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-133213 /vendor/edk2/current 103735-103757,103769-103776,129194-139864
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Scripts/SetupGit.py
r80721 r85718 3 3 # 4 4 # Copyright (c) 2019, Linaro Ltd. All rights reserved.<BR> 5 # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> 5 6 # 6 7 # SPDX-License-Identifier: BSD-2-Clause-Patent … … 54 55 # Set of options to be set identically for all repositories 55 56 OPTIONS = [ 56 {'section': 'am', 'option': 'keepcr', 'value': True},57 {'section': 'am', 'option': 'signoff', 'value': True},58 {'section': 'cherry-pick', 'option': 'signoff', 'value': True},59 {'section': 'color', 'option': 'diff', 'value': True},60 {'section': 'color', 'option': 'grep', 'value': 'auto'},61 {'section': 'commit', 'option': 'signoff', 'value': True},62 {'section': 'core', 'option': 'abbrev', 'value': 12},57 {'section': 'am', 'option': 'keepcr', 'value': True}, 58 {'section': 'am', 'option': 'signoff', 'value': True}, 59 {'section': 'cherry-pick', 'option': 'signoff', 'value': True}, 60 {'section': 'color', 'option': 'diff', 'value': True}, 61 {'section': 'color', 'option': 'grep', 'value': 'auto'}, 62 {'section': 'commit', 'option': 'signoff', 'value': True}, 63 {'section': 'core', 'option': 'abbrev', 'value': 12}, 63 64 {'section': 'core', 'option': 'attributesFile', 64 65 'value': os.path.join(CONFDIR, 'gitattributes').replace('\\', '/')}, 65 {'section': 'core', 'option': 'whitespace', 'value': 'cr-at-eol'},66 {'section': 'diff', 'option': 'algorithm', 'value': 'patience'},66 {'section': 'core', 'option': 'whitespace', 'value': 'cr-at-eol'}, 67 {'section': 'diff', 'option': 'algorithm', 'value': 'patience'}, 67 68 {'section': 'diff', 'option': 'orderFile', 68 69 'value': os.path.join(CONFDIR, 'diff.order').replace('\\', '/')}, 69 {'section': 'diff', 'option': 'renames', 'value': 'copies'},70 {'section': 'diff', 'option': 'statGraphWidth', 'value': '20'},71 {'section': 'diff "ini"', 70 {'section': 'diff', 'option': 'renames', 'value': 'copies'}, 71 {'section': 'diff', 'option': 'statGraphWidth', 'value': '20'}, 72 {'section': 'diff "ini"', 'option': 'xfuncname', 72 73 'value': '^\\\\[[A-Za-z0-9_., ]+]'}, 73 {'section': 'format', 'option': 'coverLetter', 'value': True}, 74 {'section': 'format', 'option': 'numbered', 'value': True}, 75 {'section': 'format', 'option': 'signoff', 'value': False}, 76 {'section': 'notes', 'option': 'rewriteRef', 'value': 'refs/notes/commits'}, 77 {'section': 'sendemail', 'option': 'chainreplyto', 'value': False}, 78 {'section': 'sendemail', 'option': 'thread', 'value': True}, 74 {'section': 'format', 'option': 'coverLetter', 'value': True}, 75 {'section': 'format', 'option': 'numbered', 'value': True}, 76 {'section': 'format', 'option': 'signoff', 'value': False}, 77 {'section': 'log', 'option': 'mailmap', 'value': True}, 78 {'section': 'notes', 'option': 'rewriteRef', 'value': 'refs/notes/commits'}, 79 {'section': 'sendemail', 'option': 'chainreplyto', 'value': False}, 80 {'section': 'sendemail', 'option': 'thread', 'value': True}, 81 {'section': 'sendemail', 'option': 'transferEncoding', 'value': '8bit'}, 79 82 ] 80 83 … … 104 107 105 108 106 def get_upstream(url ):109 def get_upstream(url, name): 107 110 """Extracts the dict for the current repo origin.""" 108 111 for upstream in UPSTREAMS: 109 if fuzzy_match_repo_url(upstream['repo'], url): 112 if (fuzzy_match_repo_url(upstream['repo'], url) or 113 upstream['name'] == name): 110 114 return upstream 111 115 print("Unknown upstream '%s' - aborting!" % url) … … 141 145 action='store_true', 142 146 required=False) 147 PARSER.add_argument('-n', '--name', type=str, metavar='repo', 148 choices=['edk2', 'edk2-platforms', 'edk2-non-osi'], 149 help='set the repo name to configure for, if not ' 150 'detected automatically', 151 required=False) 143 152 PARSER.add_argument('-v', '--verbose', 144 153 help='enable more detailed output', … … 154 163 URL = REPO.remotes.origin.url 155 164 156 UPSTREAM = get_upstream(URL )165 UPSTREAM = get_upstream(URL, ARGS.name) 157 166 if not UPSTREAM: 158 167 print("Upstream '%s' unknown, aborting!" % URL)
Note:
See TracChangeset
for help on using the changeset viewer.