Impala has switched, as of 26 July 2016, to using Apache git as our upstream/source-of-truth. To switch to using it as your source-of-truth:
- Add a new git remote "apache" that tracks the ASF git repo:
git remote add apache https://git-wip-us.apache.org/repos/asf/impala.git
- Set up your gerrit remote for ASF as follows:
- Use "git remote -v" to see your current gerrit remotes. You should see something like "gerrit ssh:// jbapple-cloudera@gerrit.cloudera.org:29418/Impala (fetch)".
- Copy the URL and modify it to change "Impala" to "Impala-ASF", then add that as a remote with the name "asf-gerrit"
git remote add asf-gerrit ssh://jbapple-cloudera@gerrit.cloudera.org:29418/Impala-ASF
(changing the username to your username in your ‘gerrit’ git remote.)
- Create a new local branch named "asf-gerrit-master" that tracks ASF master:
git fetch asf-gerrit
git checkout asf-gerrit/master
git checkout -b asf-gerrit-master
git branch --set-upstream-to=asf-gerrit/master asf-gerrit-master
- If you are a committer, set up your credentials at https://id.apache.org
- export DOWNLOAD_CDH_COMPONENTS="true". Consider adding this to your .bashrc
- For your current code reviews, you can either migrate them now to being based on apache, or you can wait until they are +2ed. The bad news is that if you move them, you leave your gerrit comments behind, and if you don’t move them, you lose the ability to rebase. When you move them, go to the patch in gerrit and click "Download" in the upper right-hand corner. Then either "Cherry Pick" or download "Patch-File" Go to your command line and git checkout asf-gerrit-master
git pull
git checkout -b $SOME_NEW_BRANCH_NAME
Then either (a) Run the Cherry Pick command line (b) Download the patch file and apply it using the ‘patch’ command. After applying it, git commit. Git push to gerrit as described below
- Develop as you usually do. When you are ready to push to gerrit
git push --no-thin asf-gerrit HEAD:refs/for/master