I have mirror all android repository into my local repository, but with new version release I found it it hard to update from upstream.
Here is the detail:
After I mirror android source, my modification is in my own branch my-jb-mr1 on my private server. my-jb-mr1 is branched from aosp jb-mr1.
- master
- ...
- jb-mr1
- my-jb-mr1
Now kitkat is release on aosp, I found I don't know how to update my private server to keep track on aosp. My idea is
- merge aosp master to my local repository master, then push to my private server
- branch the code based the branch node on aosp
But this seems does not work. Because the branch on aosp I want to keep track is kitkat-dev and kitkat-release. The master branch on aosp does not include all commits within the target branch.
What I want is to sync from aosp. After sync, the repository is like:
- master
- ...
- jb-mr1
- kitkat-dev
- kitkat-release
- my-jb-mr1
kitkat-release and kitkat-dev should exactly the same with the branch on aosp.
Could any one give me some hint how to handle this case?