+1 to moving to git. I am not going to attempt to convince those stubborn types
that want to stick to SVN. I use git and svn and git simply works better for me.

I just want to explain something, because there seems to be a misunderstanding.

> time git clone git://git.apache.org/lucene-solr.git test.git

These are all apples-to-oranges comparisons. You're fetching the
entire history of all commits. SVN just fetches one branch. I
typically fetch more than one branch when I work and it takes (N * svn
checkout) times to do so (and no, switch is not much faster). For your
comparison
to be fairer, you should be comparing git clone to:

time svn co https://svn.apache.org/repos/asf/lucene/dev

I don't know what the actual time of this is or how much disk space it
takes. Yes, it is an insane command but it's really an equivalent of
having a git clone locally...

Also, even if the initial clone takes 9 minutes (which I think is
Apache's git server being dog slow), you can always fetch from any
other mirror. It's still the same repository, with all the commits,
tags, hashes, etc. Or you can fetch just the latest revision with
--depth 1. Many options out there [shrug].

> If I ever reach a point where I am working on multiple code trees, I
> expect that I will have them in separate directories because that will
> help me keep them straight.

Once you start working with git you probably won't bother having
separate folders. Simply because this thing is super helpful (and
fast) -- it aggregates all your branch commits into a single patch:

git diff my-branch..origin/master

Again, I do this with SVN too (against a remote URL) and it takes a
looong time, every time I do it. A single initial checkout time is not
enough to assess overall tool productivity...

Finally, even if your taste is to have separate folders, remember you
only need one clone of the repo, ever (and you only pull new commits later on).
Managing a different branch then becomes:

cd ..
cp -R lucene-master lucene-my-branch
cd lucene-my-branch
git co master -b my-branch
git push origin HEAD -u

done, you're set. Takes 3 seconds. Longer than a remote svn copy, at
least from Europe...

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to