Sheriffing/How To/Unified Repos: Difference between revisions

m
Drop references to fx-team
m (ChrisCooper moved page Sheriffing/How:To:SheriffingFromUnifiedRepos to Sheriffing/How To/Unified Repos: More intuitive naming scheme)
m (Drop references to fx-team)
Line 54: Line 54:


== Checkin-neededs ==
== Checkin-neededs ==
This assumes we're checking things in to fx-team. Replace fx-team with another branch name as needed.
This assumes we're checking things in to autoland. Replace autoland with another branch name as needed.


==== Single repository and single set of patches ====
==== Single repository and single set of patches ====
Update fx-team and prepare for the patches:
Update autoland and prepare for the patches:
* hg pull fx-team
* hg pull autoland
* hg up fx-team
* hg up autoland
* hg bookmark fx-team-checkins
* hg bookmark autoland-checkins
Import the patches:
Import the patches:
* hg import https://link.to/correct/checkin-needed.patch
* hg import https://link.to/correct/checkin-needed.patch
* Repeat ^ as needed for all fx-team checkin-needed patches
* Repeat ^ as needed for all autoland checkin-needed patches
Verify your outgoing changes:
Verify your outgoing changes:
* hg out -r . fx-team
* hg out -r . autoland
If you haven't lost a push race:
If you haven't lost a push race:
* hg push -r . fx-team
* hg push -r . autoland
If you lost a push race:
If you lost a push race:
* hg pull fx-team
* hg pull autoland
* hg rebase -d fx-team
* hg rebase -d autoland
* hg push -r . fx-team
* hg push -r . autoland
Delete your no longer needed bookmark:
Delete your no longer needed bookmark:
* hg bookmark -d fx-team-checkins
* hg bookmark -d autoland-checkins


==== Multiple repositories with a single set of patches each ====
==== Multiple repositories with a single set of patches each ====
You can set up multiple sets of patches at once against multiple repositories:
You can set up multiple sets of patches at once against multiple repositories:
Update fx-team
Update autoland
* hg pull fx-team && hg up fx-team
* hg pull autoland && hg up autoland
Create a bookmark to base your fx-team checkin-needed patches
Create a bookmark to base your autoland checkin-needed patches
* hg bookmark fxteam-checkins
* hg bookmark autoland-checkins
Import a bunch of patches against fx-team
Import a bunch of patches against autoland
* hg import <patch1>
* hg import <patch1>
* hg import <patch2>
* hg import <patch2>
Line 93: Line 93:
* hg push -r . inbound # this only pushes patch3 and patch4
* hg push -r . inbound # this only pushes patch3 and patch4
* hg bookmark -d inbound-checkins # delete inbound's checkin bookmark as it's not needed
* hg bookmark -d inbound-checkins # delete inbound's checkin bookmark as it's not needed
Go back to your fx-team checkins and add another patch to the bookmark, then push it
Go back to your autoland checkins and add another patch to the bookmark, then push it
* hg up fxteam-checkins
* hg up autoland-checkins
* hg import <patch5>
* hg import <patch5>
* hg out -r . fx-team # this will be patch1, patch2, and patch5
* hg out -r . autoland # this will be patch1, patch2, and patch5
* hg push -r . fx-team
* hg push -r . autoland
* hg bookmark -d fxteam-checkins
* hg bookmark -d autoland-checkins


==== Single repository with multiple sets of patches ====
==== Single repository with multiple sets of patches ====
Or have multiple sets of patches against a single repository:
Or have multiple sets of patches against a single repository:
Update fx-team
Update autoland
* hg pull fx-team && hg up fx-team
* hg pull autoland && hg up autoland
Make the first bookmark/set
Make the first bookmark/set
* hg bookmark fxteam-checkins-1
* hg bookmark autoland-checkins-1
* hg import <patch1>
* hg import <patch1>
* hg import <patch2>
* hg import <patch2>
Make the second set
Make the second set
* hg up fx-team && hg bookmark fxteam-checkins-2
* hg up autoland && hg bookmark autoland-checkins-2
* hg import <patch3>
* hg import <patch3>
* hg import <patch4>
* hg import <patch4>
See what's going to be pushed in each
See what's going to be pushed in each
* hg out -r . fx-team # patch3 and patch4
* hg out -r . autoland # patch3 and patch4
* hg up fxteam-checkins-1 && hg out -r . fx-team # patch1 and patch2
* hg up autoland-checkins-1 && hg out -r . autoland # patch1 and patch2
Push the first set
Push the first set
* hg push -r . fx-team # pushes patch1 and patch2
* hg push -r . autoland # pushes patch1 and patch2
Get ready to push the second set
Get ready to push the second set
* hg up fxteam-checkins-2
* hg up autoland-checkins-2
* hg rebase -d fx-team # Rebase the second set onto the now-pushed first set
* hg rebase -d autoland # Rebase the second set onto the now-pushed first set
And push it
And push it
* hg push -r . fx-team # pushes patch3 and patch4
* hg push -r . autoland # pushes patch3 and patch4
Delete the now-unneeded bookmarks
Delete the now-unneeded bookmarks
* hg bookmark -d fxteam-checkins-1
* hg bookmark -d autoland-checkins-1
* hg bookmark -d fxteam-checkins-2
* hg bookmark -d autoland-checkins-2


== Uplifts ==
== Uplifts ==
Confirmed users
396

edits