Skip to content

[update-checkout] Backport recent fixes to 3.1 branch #8078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

colinhowell
Copy link
Contributor

@colinhowell colinhowell commented Mar 14, 2017

Add fixes for problems in the --scheme, --tag, --clean, and --dump-hashes
options of update-checkout to the swift-3.1-branch. Among other fixes,
this will allow users to easily switch between the 3.1 and master branch
schemes and to check out 3.1 tags which postdate this commit, without risk
of corrupting the state of their repositories.

Also brings the 3.1 branch's update-checkout-config.json file in sync
with all the recent changes in branch schemes.

For update-checkout, this commit includes the following commits, in
chronological order:
b46ce6c
34099d4
2c65c77
631495c
07ddf07
309312d
0312579
There is also a very simple one-line fix to update_repository_to_tag(),
to fix a minor bug also fixed by fecbd22: "Unnecessary setting of the
cross_repo flag by the --tag argument has been removed, so repos which
lack the tag are now properly rebased when updated."

I have deliberately omitted any recent commits which added new features to
update-checkout, to minimize the chance of introducing bugs to the 3.1
branch. I also left out the recent Python lint fixes.

For update-checkout-config.json, this commit includes all changes up
through the present state (commit cd6474c).

This PR stems from recent comments on bug #46385. It's an attempt to get important fixes to update-checkout into the 3.1 branch. The commit message pretty much explains everything.

Resolves the following bugs still in swift-3.1-branch: #46385, #46395, and #46439. All of these were already fixed in "master".

Pinging @tkremenek, @shahmishal, @gottesmm, and @erg to review this, test appropriately, and judge it worthy or unworthy. (I have tested it myself on my own repository and everything seems to work as expected.)

Add fixes for problems in the --scheme, --tag, --clean, and --dump-hashes
options of update-checkout to the swift-3.1-branch. Among other fixes,
this will allow users to easily switch between the 3.1 and master branch
schemes and to check out 3.1 tags which postdate this commit, without risk
of corrupting the state of their repositories.

Also brings the 3.1 branch's update-checkout-config.json file in sync
with all the recent changes in branch schemes.

For update-checkout, this commit includes the following commits, in
chronological order:
    b46ce6c
    34099d4
    2c65c77
    631495c
    07ddf07
    309312d
    0312579
There is also a very simple one-line fix to update_repository_to_tag(),
to fix a minor bug also fixed by fecbd22: "Unnecessary setting of the
cross_repo flag by the --tag argument has been removed, so repos which
lack the tag are now properly rebased when updated."

I have deliberately omitted any recent commits which added new features to
update-checkout, to minimize the chance of introducing bugs to the 3.1
branch. I also left out the recent Python lint fixes.

For update-checkout-config.json, this commit includes all changes up
through the present state (commit cd6474c).
@tkremenek
Copy link
Member

@swift-ci clean test

@tkremenek
Copy link
Member

@erg @shahmishal please review

Copy link
Member

@shahmishal shahmishal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@tkremenek tkremenek merged commit ed97f66 into swiftlang:swift-3.1-branch Mar 14, 2017
Copy link
Contributor

@erg erg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@colinhowell
Copy link
Contributor Author

Many thanks for the reviews and merge!

@AnthonyLatsis AnthonyLatsis added the update-checkout Area → utils: the `update-checkout` script label Sep 28, 2022
@AnthonyLatsis AnthonyLatsis added the utils Area: the build system and other accessory scripts under the "utils" directory label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-checkout Area → utils: the `update-checkout` script utils Area: the build system and other accessory scripts under the "utils" directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants