All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Grimm <koreth@midwinter.com>
To: Reece Dunn <msclrhd@googlemail.com>
Cc: "Shawn O. Pearce" <spearce@spearce.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	Jakub Narebski <jnareb@gmail.com>,
	git@vger.kernel.org
Subject: Re: Git User's Survey 2007 unfinished summary continued
Date: Sun, 14 Oct 2007 11:12:07 -0700	[thread overview]
Message-ID: <47125BF7.2070503@midwinter.com> (raw)
In-Reply-To: <3f4fd2640710140320h5c1e1f7gf9f43a626aaa6897@mail.gmail.com>

Reece Dunn wrote:
> The core plumbing in git is solid. The porcelain, with the 1.5 series,
> makes git simpler to use from the command line. Now, the GUI available
> for git is seriously lacking.
>   

I'm not sure I agree with that. Here's the section on git from the 
"Comparison with other systems" part of the Mercurial book. I'll 
reproduce it in its entirety here and add my own comments about each 
paragraph.

 > Git is a distributed revision control tool that was developed for 
managing the
 > Linux kernel source tree. Like Mercurial, its early design was 
somewhat influenced
 > by Monotone.

No argument there.

 > Git has an overwhelming command set, with version 1.5.0 providing 139
 > individual commands. It has a reputation for being difficult to 
learn. It does not have
 > a user manual, only documentation for individual commands.

The part about the user manual is bunk (and was bunk in version 1.5.0, 
IIRC, so I'm not sure where he gets that.) But the first part of that is 
the key here. I admit that's even bitten me from time to time. I 
couldn't remember the name of the "git-instaweb" command just yesterday; 
doing "ls /usr/local/bin/git-*" was, I'd have to agree, pretty overwhelming.

We could probably solve that by tucking the plumbing commands away in a 
lib or libexec directory and only exposing the porcelain commands in the 
directory the end user is likely to look at.

But that's just an aspect of a more general fact: it's hard to use git 
without getting exposed to the plumbing at least a little. Another 
example is the manpages: try to look up the commonly-used options to 
"git diff" (porcelain) and you will be forced to learn about "git 
rev-parse" (plumbing).

The point is, though, that this is a valid complaint about git's UI that 
has nothing to do with GUIs.

 > In terms of performance, git is extremely fast. There are several 
common cases
 > in which it is faster than Mercurial, at least on Linux. However, its 
performance
 > on (and general support for) Windows is, at the time of writing, far 
behind that of
 > Mercurial.

A fair statement, though of course that's been improving by leaps and 
bounds of late and hopefully will soon be an outdated argument. The 
Windows user experience has been subpar historically.

 > While a Mercurial repository needs no maintenance, a Git repository 
requires frequent
 > manual “repacks” of its metadata. Without these, performance 
degrades, while space
 > usage grows rapidly. A server that contains many Git repositories 
that are not rigorously
 > and frequently repacked will become heavily disk-bound during 
backups, and there
 > have been instances of daily backups taking far longer than 24 hours 
as a result.
 > A freshly packed Git repository is slightly smaller than a Mercurial 
repository, but an
 > unpacked repository is several orders of magnitude larger.

This was true at the time the hg book was written. Now that we have the 
auto-packing code, hopefully it will be a moot point. So that's one "fix 
the UI" complaint that has been addressed; whether *successfully* or 
not, time will tell. But hg definitely had a user experience advantage 
here until very recently.

 > The core of Git is written in C. Many Git commands are implemented as 
shell or Perl
 > scripts, and the quality of these scripts varies widely. I have 
encountered a number of
 > instances where scripts charged along blindly in the presence of 
errors that should have
 > been fatal.

No doubt this is true as well. Obviously the C-ification process will 
take care of a lot of this, though of course one can charge along 
blindly in the presence of errors in any language (including, shock of 
shocks given the implication here, Python.) To the extent we can find 
places where this is still true, obviously they should be fixed. I 
wonder if anyone knows the author of the book well enough to ferret some 
specifics out of him toward that end.

Now, about hg vs. git in general. I actually spent some time this 
weekend coming up to speed on hg basics just to see what all the UI fuss 
was about. As far as I can see it is about a wash all told; some things 
are easier in git and some in hg. However, here's my speculation about 
why people might claim hg is easier. I see three things:

Multiple branches per repo. Mercurial allows them, but you won't find 
them mentioned anywhere in any of the beginner tutorials. They encourage 
people to use a "one repo per branch" model. Having gotten used to git's 
branching model, you'd have to pry that feature out of my cold, dead 
fingers, but it's fundamentally much easier to understand a model of "if 
you want to make two unrelated changes to your code, just make two 
copies of the source tree." It's possible git's introductory 
documentation should delay talking about "git branch" until later, and 
start off talking about how to work with one (checked out) branch per repo.

Update to a dirty working copy. I think there's a tendency in these 
parts to vastly underestimate the importance of being able to pull down 
updates from a master repository while you're in the middle of 
development. Mercurial's equivalent to bare "git pull", namely "hg pull" 
followed by "hg update", works fine if you have edits in your working 
copy; if there are conflicting changes, it pops you into a conflict 
resolution UI (or adds conflict markers, depending on your settings) and 
you continue on your merry way after resolving everything. This workflow 
is really common, especially in corporate settings where there's very 
fine-grained collaboration going on during initial development (a huge 
difference from the open-source world where most of the time it's just 
one person doing an initial prototype.) Right now working this way is a 
pain in git. Less so now that we have "git stash", but it could still be 
much, much smoother.

Verbosity. IMO Mercurial swings too far in this direction, but in 
general it's either completely silent or very terse in its output. There 
is never, as far as I can see, any low-level diagnostic information spit 
out to the user unless an hg command is run with a "verbose" option. 
Here's "hg pull; hg update", for example (and "pull" is one of hg's 
chattier commands):

pulling from ../child1
searching for changes
adding changesets
adding manifests
adding file changes
added 8 changesets with 8 changes to 3 files (+1 heads)
(run 'hg heads' to see heads, 'hg merge' to merge)
3 files updated, 0 files merged, 0 files removed, 0 files unresolved

Compare with the equivalent "git pull" and put yourself in the shoes of 
a user who is running that command for the first time:

remote: Generating pack...
remote: Counting objects: 9
remote: Done counting 1118 objects.
Result has 832 objects.
remote: Deltifying 822 objects...
remote: 100% (822/822) done
Indexing 832 objects...
remote: Total 832 (delta 668), reused 0 (delta 0)
100% (832/832) done
Resolving 668 deltas...
100% (668/668) done
258 objects were added to complete this thin pack.
* refs/remotes/origin/session-fix: fast forward to branch 'session-fix' 
of ssh://devrs005/~/www
old..new: 3de27db..a3d44c1
Already up-to-date.

So anyway, there are a few specifics. That's based on just a bit of 
playing around with hg; maybe the differences go deeper than this, but I 
think there isn't a huge usability gap between the two systems any more.

-Steve

  reply	other threads:[~2007-10-14 18:12 UTC|newest]

Thread overview: 161+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 20:55 Git User's Survey 2007 unfinished summary continued Jakub Narebski
2007-10-12 22:08 ` Jakub Narebski
2007-10-12 23:36   ` Frank Lichtenheld
2007-10-13  0:46   ` Johannes Schindelin
2007-10-13  2:13     ` J. Bruce Fields
2007-10-13  2:53     ` Shawn O. Pearce
2007-10-13 12:58     ` Frank Lichtenheld
2007-10-13 13:04       ` Johannes Schindelin
2007-10-13 18:00     ` Andreas Ericsson
2007-10-13 19:59     ` David Kastrup
2007-10-13 20:27       ` J. Bruce Fields
2007-10-13 20:57         ` David Kastrup
2007-10-14  0:36         ` Johannes Schindelin
2007-10-14  1:13           ` Linus Torvalds
2007-10-14  1:44             ` Shawn O. Pearce
2007-10-14  3:15               ` Linus Torvalds
2007-10-14  3:43                 ` david
2007-10-14  3:55                   ` Linus Torvalds
2007-10-14 10:20               ` Reece Dunn
2007-10-14 18:12                 ` Steven Grimm [this message]
2007-10-14 18:40                   ` J. Bruce Fields
2007-10-14 19:25                     ` Steven Grimm
2007-10-14 19:50                     ` Andreas Ericsson
2007-10-14 20:18                       ` Johannes Schindelin
2007-10-14 20:22                         ` Andreas Ericsson
2007-10-14 20:24                         ` J. Bruce Fields
2007-10-14 19:44                   ` Nicolas Pitre
2007-10-15 23:20                     ` Shawn O. Pearce
2007-10-16  2:48                       ` Nicolas Pitre
2007-10-16 10:51                         ` Johannes Schindelin
2007-10-14  2:06             ` Johannes Schindelin
2007-10-14  8:45               ` Andreas Ericsson
2007-10-14  9:21                 ` David Kastrup
2007-10-14 21:49       ` Jakub Narebski
2007-10-14 22:08         ` Johannes Schindelin
2007-10-14 22:17           ` David Kastrup
2007-10-14 22:12         ` David Kastrup
2007-10-14 22:15           ` Jakub Narebski
2007-10-14 22:23           ` Matthew Andrews
2007-10-14 22:30             ` David Kastrup
2007-10-14 21:10     ` David Tweed
2007-10-19 20:57     ` Federico Mena Quintero
2007-10-19 23:27       ` Jakub Narebski
2007-10-19 23:37       ` Johannes Schindelin
2007-10-22 14:28         ` Federico Mena Quintero
2007-10-20  8:03       ` Andreas Ericsson
2007-10-20 10:19         ` Steffen Prohaska
2007-10-20 11:29           ` Andreas Ericsson
2007-10-21  6:08             ` Dmitry Potapov
2007-10-20 23:06           ` Jakub Narebski
2007-10-20 23:33             ` Johannes Schindelin
2007-10-21  7:17               ` Andreas Ericsson
2007-10-21 22:15                 ` Johannes Schindelin
2007-10-22  7:59                   ` Andreas Ericsson
2007-10-22 11:04                     ` best git practices, was " Johannes Schindelin
2007-10-22 12:44                       ` Andreas Ericsson
2007-10-22 13:48                         ` Johannes Schindelin
2007-10-22 14:31                           ` Andreas Ericsson
2007-10-22 15:00                             ` Johannes Schindelin
2007-10-22 15:16                               ` Andreas Ericsson
2007-10-22 15:42                                 ` Steffen Prohaska
2007-10-22 19:36                                 ` Federico Mena Quintero
2007-10-22 23:21                                   ` Johannes Schindelin
2007-10-25 19:04                                     ` Carl Worth
2007-10-22 23:35                             ` Jakub Narebski
2007-10-23  5:38                               ` Steffen Prohaska
2007-10-23 10:58                                 ` Johannes Schindelin
2007-10-24 18:48                                   ` Steffen Prohaska
2007-10-24 19:20                                     ` J. Bruce Fields
2007-10-24 19:41                                       ` Andreas Ericsson
2007-10-24 19:48                                         ` J. Bruce Fields
2007-10-24 20:12                                           ` Steffen Prohaska
2007-10-24 20:33                                             ` J. Bruce Fields
2007-10-24 21:06                                               ` Andreas Ericsson
2007-10-24 21:20                                                 ` J. Bruce Fields
2007-10-24 21:28                                                 ` Peter Baumann
2007-10-24 21:47                                                   ` Steffen Prohaska
2007-10-24 22:14                                                     ` Johannes Schindelin
2007-10-24 22:33                                                       ` Steffen Prohaska
2007-10-24 22:38                                                         ` J. Bruce Fields
2007-10-24 22:51                                                           ` Steffen Prohaska
2007-10-24 23:28                                                         ` Johannes Schindelin
2007-10-25  6:02                                                           ` Steffen Prohaska
2007-10-25 10:27                                                             ` Johannes Schindelin
2007-10-25 12:04                                                               ` Steffen Prohaska
2007-10-25  7:15                                                           ` Andreas Ericsson
2007-10-25  7:31                                                             ` Peter Baumann
2007-10-25  7:57                                                               ` Andreas Ericsson
2007-10-25  8:25                                                                 ` Steffen Prohaska
2007-10-25 10:17                                                             ` Johannes Schindelin
2007-10-25 10:33                                                               ` Andreas Ericsson
2007-10-25 12:09                                                                 ` Steffen Prohaska
2007-10-25 12:58                                                                 ` Johannes Schindelin
2007-10-25 13:24                                                                 ` Theodore Tso
2007-10-25 14:58                                                                   ` Andreas Ericsson
2007-10-25 15:21                                                                     ` Theodore Tso
2007-10-25 17:05                                                                       ` Andreas Ericsson
2007-10-25 18:33                                                                         ` Junio C Hamano
2007-10-25 20:18                                                                           ` Andreas Ericsson
2007-10-26  6:18                                                                             ` Steffen Prohaska
2007-10-26  7:53                                                                               ` Andreas Ericsson
2007-10-25 18:02                                                                       ` best git practices, was Re: Git User's Survey 2007 unfinishedsummary continued Federico Mena Quintero
2007-10-25 18:04                                                                         ` Mike Hommey
2007-10-25 18:18                                                                           ` J. Bruce Fields
2007-10-25 18:23                                                                         ` Theodore Tso
2007-10-25 20:08                                                                         ` Andreas Ericsson
2007-10-26 20:01                                                                         ` David Kastrup
2007-10-25 16:06                                                       ` Federico Mena Quintero
2007-10-25 16:38                                                         ` J. Bruce Fields
2007-10-25 18:06                                                           ` Federico Mena Quintero
2007-10-25 18:16                                                             ` J. Bruce Fields
2007-10-25 20:19                                                             ` Andreas Ericsson
2007-10-25 20:27                                                               ` J. Bruce Fields
2007-10-26  9:17                                                                 ` David Kastrup
2007-10-26  4:41                                                         ` [PATCH] Make rebase smarter Steven Walter
2007-10-26  7:42                                                           ` Andreas Ericsson
2007-10-26  9:57                                                           ` Johannes Schindelin
2007-10-26 21:02                                                           ` Junio C Hamano
2007-10-26 23:13                                                             ` Johannes Schindelin
2007-10-26 23:29                                                               ` Junio C Hamano
2007-10-24 21:54                                                   ` best git practices, was Re: Git User's Survey 2007 unfinished summary continued Andreas Ericsson
2007-10-24 22:17                                                     ` Johannes Schindelin
2007-10-25  8:07                                                       ` Andreas Ericsson
2007-10-25 10:12                                                         ` Johannes Schindelin
2007-10-25 10:24                                                           ` Andreas Ericsson
2007-10-25 11:39                                                             ` Johannes Schindelin
2007-10-25 12:46                                                               ` Andreas Ericsson
2007-10-25 14:51                                                                 ` Karl Hasselström
2007-10-25 17:10                                                                   ` Andreas Ericsson
2007-10-25  7:26                                                     ` Peter Baumann
2007-10-24 21:16                                               ` Steffen Prohaska
2007-10-24 20:13                                           ` Andreas Ericsson
2007-10-24 23:48                                         ` Jakub Narebski
2007-10-25  7:42                                           ` Andreas Ericsson
2007-10-25 10:07                                             ` Johannes Schindelin
2007-10-25 10:39                                               ` Steffen Prohaska
2007-10-25 16:16                                           ` Federico Mena Quintero
2007-10-23  7:24                               ` Andreas Ericsson
2007-10-22 18:06                           ` Daniel Barkalow
2007-10-22 13:17                       ` Wincent Colaiuta
2007-10-22 13:33                         ` David Symonds
2007-10-22 13:38                         ` Johannes Schindelin
2007-10-22 17:48                           ` Robin Rosenberg
2007-10-23 22:13                         ` Alex Riesen
2007-10-22 13:36                       ` Nguyen Thai Ngoc Duy
2007-10-22 15:24                       ` best git practices, was Re: Git User's Survey 2007 unfinished summarycontinued Federico Mena Quintero
2007-10-24  2:06                       ` best git practices, was Re: Git User's Survey 2007 unfinished summary continued Jakub Narebski
2007-10-24 10:29                         ` Karl Hasselström
2007-10-24 11:04                           ` Jakub Narebski
2007-10-24 11:31                             ` Karl Hasselström
2007-10-24 23:27                               ` Jakub Narebski
2007-10-25  6:10                                 ` Karl Hasselström
2007-10-24 13:15                             ` Catalin Marinas
2007-10-22 12:26                     ` Jakub Narebski
2007-10-22 13:45                       ` Johannes Schindelin
2007-10-22 14:29                       ` Andreas Ericsson
2007-10-22 14:53                     ` Federico Mena Quintero
2007-10-22 23:27                       ` Jakub Narebski
2007-10-22 22:53                   ` Steven Grimm
2007-10-21 22:12           ` J. Bruce Fields
2007-10-13  3:04   ` Shawn O. Pearce

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=47125BF7.2070503@midwinter.com \
    --to=koreth@midwinter.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=bfields@fieldses.org \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    --cc=msclrhd@googlemail.com \
    --cc=spearce@spearce.org \
    --cc=torvalds@linux-foundation.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.
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.