V8's git repository is located at https://chromium.googlesource.com/v8/v8.git
V8's master branch has also an official git mirror on github: http://github.com/v8/v8-git-mirror.
Don't just git-clone
either of these URLs if you want to build V8 from your checkout, instead follow the instructions below to get everything set up correctly.
apt-get
:apt-get install git
git config user.email
. 1. Have a look at the big, grey box containing shell commands. Paste those lines into your shell.Make sure depot_tools are up-to-date by typing once:
gclient
Then get V8, including all branches and dependencies:
mkdir ~/v8 cd ~/v8 fetch v8 cd v8
After that you're intentionally in a detached head state.
Optionally you can specify how new branches should be tracked:
git config branch.autosetupmerge always git config branch.autosetuprebase always
Alternatively, you can create new local branches like this (recommended):
git new-branch mywork
Update your current branch with git pull. Note that if you‘re not on a branch, git pull won’t work, and you'll need to use git fetch instead.
git pull
Sometimes dependencies of v8 are updated. You can synchronize those by running
gclient sync
git cl upload
You can use the CQ checkbox on codereview for committing (preferred). See also the chromium instructions for CQ flags and troubleshooting.
If you need more trybots than the default, add the following to your commit message on rietveld (e.g. for adding a nosnap bot):
CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_nosnap_rel
To land manually, update your branch:
git pull --rebase origin
Then commit using
git cl land
git cl upload
git cl try
git cl try --revision=1234
git cl try
The revision argument tells the try bot what revision of the code base will be used for applying your local changes to. Without the revision, our LKGR revision is used as the base (http://v8-status.appspot.com/lkgr).
git cl try --revision=1234
To avoid running your try job on all bots, use the --bot flag with a comma-separated list of builder names. Example:
git cl try --bot=v8_mac_rel
http://build.chromium.org/p/tryserver.v8/waterfall
If asked for access credentials, use your @chromium.org email address and your generated password from googlecode.com.