You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Before Committing

How to commit 

  1. First you need to ask yourself, which branch you need to commit into ? Usually you should commit it to master, if there's one release based on another branch, you should also commit into that branch.
  2. For each commit, you should also update the CHANGES.txt, including which release this JIRA will go in and whether it is an INCOMPATIBLE CHANGES

Usually you will create a separate branch for your JIRA you are working, you can also work on master directly if you think the JIRA is pretty simple. Here I assume you are working on a separate branch. e.g TEZ-100

 

git branch TEZ-100
git checkout TEZ-100
... // working on jira, don't forget update CHANGES.txt
git commit m 'TEZ-100. JIRA Title (author)' // please follow this format of commit message 
git log // check whether the commit is succeeded
git checkout master
git merge TEZ-100
git log // check whether the merge is succeeded
git push origin master:master // push local master to remote master
 
// cherry-pick to another branch (branch-0.5)
git log // copy the hash value of the commit you want to cherry-pick
git checkout branch-0.5
git cherry-pick -x ${HashValue}   // don't forget the "-x"
git log // check whether the cherry-pick is succeeded, you should see logs like this, the last line will only show when you add "-x" 
        // commit eb054c8cd26144d83b6b3d91c8d5d3dd882f6ae0
        // Author: Hitesh Shah <hitesh@apache.org>
        // Date:   Sat Oct 18 09:35:15 2014 -0700
        // TEZ-1683. Do ugi::getGroups only when necessary when checking ACLs. (hitesh)
        // (cherry picked from commit 83b0c3db9777dc4ebe76963571d4be4ce6985873)
 
// Resolve the conflict if the cherry-pick fails sometimes
// After you resolve the conflict, call the following command
git cherry-pick --continue


 

Your first commit

Once you become Tez Committer, you should have commit access to tez repository. You should first create a JIRA ticket for adding yourself to team list and take this as your first commit. 

The instructions on this page of how to updating Tez website is here Updating the Tez Website

The first time you commit, you need to enter username and password. For the following commits, you don't need to do that.

  • No labels