all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: bzr vs. git repository
Date: Sat, 01 Jan 2011 11:14:42 +0100	[thread overview]
Message-ID: <878vz5hqwd.fsf@lola.goethe.zz> (raw)
In-Reply-To: 83zkrlosry.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Sat, 01 Jan 2011 09:28:38 +0100 (CET)
>> From: Werner LEMBERG <wl@gnu.org>
>> 
>> As you can see, bzr still needs about three times more bandwidth in
>> both receiving and sending...
>
> So what?  In my testing, both on GNU/Linux and on MS-Windows,
> update/pull times are very similar (with bzr slightly _faster_ on
> GNU/Linux).  That includes the initial "bzr branch" vs "git clone" (10
> min for bzr vs 15 for git).  Other common operations are mostly
> comparable as well.  (A great surprise was "annotate", which, for
> xdisp.c, took 1 minute with bzr, but a whopping 4.5 minutes with git.
> But I see that as a curiosity.)

That is not a curiosity but a consequence of git's design choices.  git
stores file system snapshots and a DAG of commits.  Everything else is
reconstructed on-the-fly when you ask for it.  As a result, renaming
files in git is indistinguishable from deleting the old file and
creating a new file with the old content.

That makes git a handy tool for analyzing, say, a progression of
distribution tarballs.  You just check in all the tarballs into a git
repository, and you get renames, moves, copied content, tracking of
material and so on out _gratis_ because git never stores those kind of
things but instead knows how to make them up.

Now "git annotate" is an example where git constructs a history of
content through file renaming and subfile copying, and does it at the
time of "git annotate".  That's the reason git annotate is _expected_ to
be an expensive operation, and you have various options to tell it just
how expensive it may do its work, depending on the amount of
reconstructed information you'd like to see.

Bazaar does not do this.  It just reproduces the history according to
the file operation history that has been explicitly stored into Bazaar
by the user.

If you store a sequence of unpacked tarballs into Bazaar and ask for the
history of some content, Bazaar will not track the content across
subfile copying and file renames because it has not been _told_ about
them explicitly.

-- 
David Kastrup




  parent reply	other threads:[~2011-01-01 10:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-01  8:28 bzr vs. git repository Werner LEMBERG
2011-01-01  9:52 ` Eli Zaretskii
2011-01-01  9:54   ` Werner LEMBERG
2011-01-01 10:12     ` Eli Zaretskii
2011-01-01 11:04       ` Werner LEMBERG
2011-01-01 12:36         ` Óscar Fuentes
2011-01-01 10:13     ` Frank Schmitt
2011-01-01 10:14   ` David Kastrup [this message]
2011-01-01 11:36     ` Eli Zaretskii
2011-01-01 11:44 ` Eli Zaretskii
2011-01-01 17:28 ` Stefan Monnier
2011-01-02  0:33 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vz5hqwd.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.