git config svn-remote.svn.fetch trunk/src:refs/remotes/origin/git-svn
git config svn-remote.svn.fetch trunk/src:refs/remotes/origin/trunk
No, the fetch shouldn't take very long. I normally use the very effective "git rsleevi@ help-me" command on IRC when that happens.
If that command is unavailable, re-following the instructions on a fresh tree probably will work too.
Did you perhaps omit a step when setting up the UsingNewGit for
read-only? the rewriteUUID-and-friend commands are supposed to help
git-svn know that when it sees a git-svn-id for
svn://svn.chromium.org, it's the same as the https://src.chromium.org
version, and thus git-svn 'already has it', and should just no-op the
fetch. Depending on git log speed, a full fetch if you have a decent
git clone "should" just take a minute or two.
On Wed, Jul 25, 2012 at 7:57 PM, Ryan Sleevi <rsl...@chromium.org> wrote:Did you perhaps omit a step when setting up the UsingNewGit for
read-only? the rewriteUUID-and-friend commands are supposed to help
git-svn know that when it sees a git-svn-id for
svn://svn.chromium.org, it's the same as the https://src.chromium.org
version, and thus git-svn 'already has it', and should just no-op the
fetch. Depending on git log speed, a full fetch if you have a decent
git clone "should" just take a minute or two.I followed all of the directions for read-only setup, including the rewriteUUID stuff. When I run git svn fetch, I do see it printing out very quickly a bunch of (git?) hashes, but then it quickly reverts to pulling in every single revision.In any case, since my box has plenty of disk space, I just created a new directory and followed the new git flow instructions from scratch. Everything is working as expected and gyp_chromium is fast once again.I may try again with my old tree to do an update. I doubt I'm the only one who has run into this issue.Thanks for the explanation of how things are supposed to work.
Btw, instead of :git log --grep '^git-svn-id:.*@<svn_rev>
Just say:git svn find-rev r123456
On Thu, Jul 26, 2012 at 10:00 AM, Raymond Toy <rt...@google.com> wrote:
On Wed, Jul 25, 2012 at 7:57 PM, Ryan Sleevi <rsl...@chromium.org> wrote:Did you perhaps omit a step when setting up the UsingNewGit for
read-only? the rewriteUUID-and-friend commands are supposed to help
git-svn know that when it sees a git-svn-id for
svn://svn.chromium.org, it's the same as the https://src.chromium.org
version, and thus git-svn 'already has it', and should just no-op the
fetch. Depending on git log speed, a full fetch if you have a decent
git clone "should" just take a minute or two.I followed all of the directions for read-only setup, including the rewriteUUID stuff. When I run git svn fetch, I do see it printing out very quickly a bunch of (git?) hashes, but then it quickly reverts to pulling in every single revision.In any case, since my box has plenty of disk space, I just created a new directory and followed the new git flow instructions from scratch. Everything is working as expected and gyp_chromium is fast once again.I may try again with my old tree to do an update. I doubt I'm the only one who has run into this issue.Thanks for the explanation of how things are supposed to work.tl;dr - the LKGR is a Subversion revision which means nothing to git [workflows]. If you want to sync to LKGR with your git checkout, the LKGR svn rev needs to be mapped to a git SHA1. This means gclient sync needs to:1) git svn fetch # or2) git pull && git reset --hard `git log --grep '^git-svn-id:.*@<svn_rev> ' --pretty='format:%H'` # or something to this effectThe second way is hacky and fragile (and requires you to rebase than reset, as git fetch alone doesn't let you grep the git log as far as I know), so I chose the first. If git svn fetch is used, there are 2 ways to speed this up: