6
6
Fork the _ omniosorg/illumos-omnios_ repository to your personal GitHub profile.
7
7
Then clone it to your development machine.
8
8
9
- ``` shell
9
+ ```
10
10
$ git clone git@github.com:<github_name>/illumos-omnios.git
11
11
```
12
12
13
13
Set-up remote repositories.
14
14
15
- ``` shell
15
+ ```
16
16
$ git remote add upstream git@github.com:omniosorg/illumos-omnios.git
17
17
$ git remote add -t master upstream_gate https://github.com/illumos/illumos-gate.git
18
18
$ git remote add -t master upstream_joyent https://github.com/joyent/illumos-joyent.git
@@ -31,7 +31,7 @@ upstream_joyent https://github.com/joyent/illumos-joyent.git (push)
31
31
32
32
Update your local repository.
33
33
34
- ``` shell
34
+ ```
35
35
$ git checkout master
36
36
$ git pull upstream master
37
37
@@ -47,22 +47,27 @@ result in a clean working tree.
47
47
48
48
Push the upstream branches to the remote repositories.
49
49
50
- ``` shell
51
- $ git push -u upstream upstream_gate
52
- $ git push -u upstream upstream_joyent
53
-
50
+ ```
54
51
$ git push -u origin upstream_gate
55
52
$ git push -u origin upstream_joyent
56
53
```
57
54
55
+ Optionally, if you have write access to the ` omniosorg/illumos-omnios `
56
+ repository, put the upstream branches to there too:
57
+
58
+ ```
59
+ $ git push -u upstream upstream_gate
60
+ $ git push -u upstream upstream_joyent
61
+ ```
62
+
58
63
## Merge upstream changes into new branch
59
64
60
65
Create a new branch into which the upstream changes will be merged in order
61
66
to create a pull request. The branch name should be
62
67
_ upstream-merge/YYYYMMDDnn_ where _ nn_ starts at 01 and is incremented in
63
68
the case that there is more than one merge in the same day.
64
69
65
- ``` shell
70
+ ```
66
71
$ git checkout -b upstream-merge/2017070301 master
67
72
```
68
73
@@ -73,7 +78,7 @@ accompanying infrastructure.
73
78
74
79
### Process for a successful merge
75
80
76
- ``` shell
81
+ ```
77
82
$ git merge upstream_gate
78
83
79
84
$ git status
@@ -83,7 +88,7 @@ nothing to commit, working tree clean
83
88
84
89
### Process for a failed merge
85
90
86
- ``` shell
91
+ ```
87
92
$ git merge upstream_gate
88
93
Auto-merging usr/src/uts/intel/sys/ucontext.h
89
94
... additional output deleted ...
@@ -100,24 +105,34 @@ Unmerged paths:
100
105
Once you have manually resolved the conflicts, add the files and commit
101
106
the change.
102
107
103
- ``` shell
108
+ ```
104
109
$ git add usr/src/head/lastlog.h
105
110
$ git add usr/src/man/man1m/zonecfg.1m
106
111
$ git commit
107
112
```
108
113
109
114
## Perform a test build
110
115
111
- ``` shell
116
+ ```
112
117
$ nightly /path/to/omnios.env
113
118
```
114
119
115
120
If the build is unsuccessful, resolve this before moving on to the next
116
121
step.
117
122
123
+ ## ONU to the new build
124
+
125
+ ```
126
+ # onu -t 20170703 -d */path/to/illumos-omnios/packages/i386/nightly-nd
127
+ ...
128
+ # init 6
129
+ ```
130
+
131
+ Confirm that the system boots.
132
+
118
133
## Push the merged branch
119
134
120
- ``` shell
135
+ ```
121
136
$ git push -u origin upstream-merge/2017070301
122
137
Counting objects: 1224, done.
123
138
Delta compression using up to 40 threads.
@@ -141,5 +156,15 @@ are backport candidates in the description of the PR. If there are none
141
156
state that too;
142
157
* Assign reviewers and the _ upstream-merge_ tag.
143
158
144
- As soon as your PR has been merged, head over to
145
- [ _ sync-upstream-joyent.md_ .] ( sync-upstream-joyent.md )
159
+ ## Update master branch
160
+
161
+ As soon as your PR has been merged, update your master branch:
162
+
163
+ ```
164
+ $ git checkout master
165
+ $ git pull upstream master
166
+ $ git push
167
+ ```
168
+
169
+ and head over to [ _ sync-upstream-joyent.md_ .] ( sync-upstream-joyent.md )
170
+
0 commit comments