Skip to content

Commit ee48c41

Browse files
committed
Rename git_ref to git_branch
1 parent c4477f1 commit ee48c41

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

master/custom/branches.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def generate_branches():
2424
yield BranchInfo(
2525
'main',
2626
version_tuple=(3, 15),
27-
git_ref='main',
27+
git_branch='main',
2828
is_main=True,
2929
builddir_name='main',
3030
builder_tag='main',
@@ -38,7 +38,7 @@ def generate_branches():
3838
yield BranchInfo(
3939
'PR',
4040
version_tuple=None,
41-
git_ref=None,
41+
git_branch=None,
4242
is_pr=True,
4343
builddir_name='pull_request',
4444
builder_tag='PullRequest',
@@ -53,7 +53,7 @@ def _maintenance_branch(major, minor, **kwargs):
5353
name=version_str,
5454
builder_tag=version_str,
5555
version_tuple=version_tuple,
56-
git_ref=version_str,
56+
git_branch=version_str,
5757
builddir_name=version_str,
5858
sort_key=-minor,
5959
)
@@ -82,7 +82,7 @@ def _maintenance_branch(major, minor, **kwargs):
8282
class BranchInfo:
8383
name: str
8484
version_tuple: tuple[int, int] | None
85-
git_ref: str | None
85+
git_branch: str | None
8686
builddir_name: str
8787
builder_tag: str
8888

master/master.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ mail_status_builders = []
193193
# Regular builders
194194

195195
for branch in BRANCHES:
196-
if not branch.git_ref:
196+
if not branch.git_branch:
197197
continue
198198
buildernames = []
199199
refleakbuildernames = []
@@ -211,7 +211,7 @@ for branch in BRANCHES:
211211
continue
212212

213213
buildername = name + " " + branch.name
214-
source = Git(repourl=GIT_URL, branch=branch.git_ref, **GIT_KWDS)
214+
source = Git(repourl=GIT_URL, branch=branch.git_branch, **GIT_KWDS)
215215
f = buildfactory(
216216
source,
217217
branch=branch,
@@ -262,7 +262,7 @@ for branch in BRANCHES:
262262
c["schedulers"].append(
263263
schedulers.SingleBranchScheduler(
264264
name=branch.name,
265-
change_filter=util.ChangeFilter(branch=branch.git_ref),
265+
change_filter=util.ChangeFilter(branch=branch.git_branch),
266266
treeStableTimer=30, # seconds
267267
builderNames=buildernames,
268268
fileIsImportant=is_important_change,
@@ -272,7 +272,7 @@ for branch in BRANCHES:
272272
c["schedulers"].append(
273273
schedulers.SingleBranchScheduler(
274274
name=branch.name + "-refleak",
275-
change_filter=util.ChangeFilter(branch=branch.git_ref),
275+
change_filter=util.ChangeFilter(branch=branch.git_branch),
276276
# Wait this many seconds for no commits before starting a build
277277
# NB: During extremely busy times, this can cause the builders
278278
# to never actually fire. The current expectation is that it

0 commit comments

Comments
 (0)