Changes between Version 68 and Version 69 of UsingGitWithWebKit


Ignore:
Timestamp:
Aug 19, 2011 6:55:40 PM (10 years ago)
Author:
dpranke@chromium.org
Comment:

Update the git instructions so that git-svn and git update the same branch and the fetches are hence much faster

Legend:

Unmodified
Added
Removed
Modified
  • UsingGitWithWebKit

    v68 v69  
    4949{{{
    5050   cd WebKit
    51    git svn init -T trunk http://svn.webkit.org/repository/webkit
    52    git update-ref refs/remotes/trunk origin/master
     51   git svn init --prefix=origin/ -T trunk http://svn.webkit.org/repository/webkit
    5352}}}
    5453
     
    5857[svn-remote "svn"]
    5958        url = http://svn.webkit.org/repository/webkit
    60         fetch = trunk:refs/remotes/trunk
     59        fetch = trunk:refs/remotes/origin/trunk
    6160}}}
    6261
     
    9493}}}
    9594
    96 If you don't fetch new revisions from Subversion very often and find fetching them one by one too slow, you can modify the svn section in your .git/config file to point directly to the '''refs/remotes/origin/master''' rather then '''refs/remotes/trunk''' which is how it is set up by default. In this case 'git svn fetch' will be way faster if done after "git fetch" or "git pull", since it'll realize it already has all the revisions locally. Edit your svn entry to look like this:
    97 
    98 {{{
    99 [svn-remote "svn"]
    100         url = http://svn.webkit.org/repository/webkit
    101         fetch = trunk:refs/remotes/origin/master
    102 }}}
    103 
    104 and then re-build the svn index by doing 'git svn fetch' once.
     95Note that 'git svn fetch' will be way faster if done after "git fetch" or "git pull", since it'll realize it already has all the revisions locally.
    10596
    10697== Commit manually through git-svn directly ==