There is a master branch:
https://github.com/OpenTSDB/opentsdb
and a next branch:
https://github.com/OpenTSDB/opentsdb/tree/next
I need to clone master, download the next branch, merge them and build them:
I've tried this:
git clone https://github.com/OpenTSDB/opentsdb.git --depth=1 -b next
cd opentsdb/
git fetch origin master:master --depth=1
git merge -s ours master
When I'm trying to build the final code, I get this error:
javac: file not found: src/query/TagVFilter.java
Usage: javac <options> <source files>
use -help for a list of possible options
make[1]: *** [.javac-stamp] Error 2
make[1]: Leaving directory `/app/data.3/opentsdb/build'
make: *** [all] Error 2
How do you merge master and next branch in github?
TL;DR
I would suggest taking the branch
next
and mergemaster
into it, manually resolving conflicts.Now there are some conflicts in, it should be, 3 files:
NEWS
,configure.ac
,src/core/AggregationIterator.java
. You have to resolve them manually.It appears that
AggregationIterator.java
gets merged automatically.Long essay on research of this particular repository and possible merges.
The following command
Gives us:
So the branches should probably be merged manually.
Output is 196 lines. That means that
next
has gone 196 commits ahead ofmaster
since branching. However,is just 7 lines:
The merge-base of two commits is
dcf516f96ed10ce0b95b1e62847fbead723b87e1
.So, you only have three files that were changed in
master
since their common ancestor withnext
. Probably hotfixes. You've got very little work to do.