Skip to content

Branches diverging #5

Open
Open
@delan

Description

@delan

Currently we have three downstream branches: main, 2023-06-14, and 2023-07-23. We landed #4 into 2023-06-14, but that doesn’t show up on main, nor does it show up in the new 2023-07-23 branch.

To fix the first problem, should we change our workflow a bit? My first idea was:

  1. Once only: rename 2023-07-23 to main
  2. Once only: reland Enable font-variant for Layout 2020 #4 into main
  3. Once only: make Servo depend on main
  4. Before our next upgrade, cut a 2023-07-23 branch
  5. Do our next upgrade on main
  6. Land additional downstream patches into main
  7. Go to step 4

I don’t think that will break the ability to build old versions of Servo, because their lockfiles depend on a specific commit hash, but rewriting main has other downsides, like making the commits that land pull requests look orphaned. What about this, which ensures that the default branch is never rewritten:

  1. Once only: make 2023-07-23 the default branch
  2. Once only: reland Enable font-variant for Layout 2020 #4 into 2023-07-23
  3. Once only: delete the main branch
  4. Do our next upgrade into a new branch like 2024-01-01
  5. Make 2024-01-01 the default branch
  6. Land additional downstream patches into 2024-01-01
  7. Go to step 4

I’m not sure about the second problem though, because I only realised we had a new 2023-07-23 branch after landing #4 into 2023-06-14. It seems with both approaches, we would still need to make sure we avoid landing patches during an upgrade or into the wrong branch.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions