From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: rms@gnu.org
Cc: esr@thyrsus.com, emacs-devel@gnu.org
Subject: Re: Commit practices
Date: Sun, 30 Dec 2007 12:56:11 +0900 [thread overview]
Message-ID: <8763yg7s4k.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <E1J8n6n-0003nY-RE@fencepost.gnu.org>
Richard Stallman writes:
> In effect, the suggestion here is that we abandon the idea
> of useful readable info associated by the VCS with each file.
I don't understand why you expect that effect. Certainly, there are
developers who, given the opportunity, will commit megapatches, and
associate them with megalogs, which are unreadable. This is a social
problem. Lash them with a wet noodle or chmod their cvs to 0644 until
they mend their evil ways.
However, all of the dVCS (distributed VCS) advocates strongly advocate
"coherent changesets", ie, keeping all the changes needed to implement
a fix or a feature in one changeset, and keeping others out. Eg, do
you object to
----------------------------------------------------------------
2007-12-30 Stephen J. Turnbull <stephen@xemacs.org>
Resolve bug where bar() frotzes instead of bazzing in a
quuxotic context.
* foo.h (bar): Add baz argument to prototype.
* foo.c (bar): Implement new baz argument, which when non-NULL
causes bar() to baz rather than frotz.
* quux.c (a, b, c, d, e): Update calls to bar() with bar = NULL.
(f): Update call to bar() with appropriate baz value.
----------------------------------------------------------------
as a common commit notice for foo.h, foo.c, and quux.c? I find this
style of log, cross-referencing the declaration, the implementation,
and the already fixed uses, very useful. But in the "coherent
changeset" style something like
----------------------------------------------------------------
2007-12-30 Stephen J. Turnbull <stephen@xemacs.org>
* foo.h (glorp): Fix typo in comment.
----------------------------------------------------------------
would *not* be acceptable if merged into the above. Is this close to
what you want?
I grant that a change such as merging the Emacs-Unicode branch will
not fit into this model. But I personally don't think it fits well
into the one-notice-per-file model, either, as the cross-referencing
will be missing, and the logs, if at all detailed, will be very long
anyway. Big merges are just horrid to create useful logs for.
As a practical matter, dVCSes enable this style by making frequent
commits easy. Coherent changesets are easier to write good logs for.
Some dVCSes even provide facilities allowing selection of which hunks
to use in the commit, making it possible to omit gratuitous typo fixes
from the main commit. Such a feature could be made generic (in Emacs)
by adding a front-end based on diff-mode.
In projects I observe where VCSes more modern than CVS are in use, it
is typically the case that static ChangeLog files have been abandoned
in favor of histories generated by the VCS, and nobody misses the
files. (NB: I'm not telling you what to think, I'm simply presenting
an observation.)
next prev parent reply other threads:[~2007-12-30 3:56 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20071229141014.3364A2C83DC@grelber.thyrsus.com>
2007-12-29 18:32 ` Commit practices Eric S. Raymond
2007-12-29 18:45 ` Eli Zaretskii
2007-12-29 20:52 ` Eric S. Raymond
2007-12-30 1:36 ` Richard Stallman
2007-12-30 3:56 ` Stephen J. Turnbull [this message]
2007-12-30 6:45 ` Eric S. Raymond
2007-12-30 6:44 ` Eric S. Raymond
2007-12-30 10:08 ` David Kastrup
2007-12-30 10:47 ` Eric S. Raymond
2007-12-30 11:01 ` Miles Bader
2007-12-30 12:36 ` Eric S. Raymond
2007-12-30 12:43 ` Miles Bader
2007-12-30 13:33 ` Eric S. Raymond
2007-12-30 13:51 ` Miles Bader
2007-12-30 14:00 ` David Kastrup
2007-12-30 12:44 ` David Kastrup
2007-12-30 13:39 ` Eric S. Raymond
2007-12-30 13:52 ` David Kastrup
2007-12-30 14:02 ` Richard Stallman
2007-12-30 17:25 ` Eric S. Raymond
2007-12-30 22:58 ` Richard Stallman
2007-12-31 3:25 ` Eric S. Raymond
2007-12-31 22:29 ` Richard Stallman
2007-12-30 7:58 ` Karl Fogel
2007-12-31 0:59 ` Dan Nicolaescu
2007-12-31 22:29 ` Richard Stallman
2008-01-01 0:48 ` Dan Nicolaescu
2008-01-01 22:47 ` Johan Bockgård
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=8763yg7s4k.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=emacs-devel@gnu.org \
--cc=esr@thyrsus.com \
--cc=rms@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.