From: Karl Fogel <kfogel@red-bean.com>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: "Óscar Fuentes" <ofv@wanadoo.es>, emacs-devel@gnu.org
Subject: Re: Wrong commit message. What to do now?
Date: Tue, 13 Jul 2010 23:42:07 -0400 [thread overview]
Message-ID: <878w5ebugg.fsf@red-bean.com> (raw)
In-Reply-To: <87vd8ihhlm.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed, 14 Jul 2010 12:23:17 +0900")
Thanks, Stephen. Considering the options, I guess I'll go with
"Always review log messages of commits you are about to push."
...and just be more careful. Subversion, though limited in other ways
of course, spoiled me in this respect, and I got used to being able to
un-shoot myself in the foot.
-Karl
"Stephen J. Turnbull" <stephen@xemacs.org> writes:
>Karl Fogel writes:
> > Óscar Fuentes <ofv@wanadoo.es> writes:
>
> > >> The ChangeLog is correct; just the bzr commit message is wrong. Does
> > >> anyone know if there's anything that can be done about this?
> > >
> > >Aren't you the guy who work on the same office as the Bazaar hackers?
> >
> > :-) No -- I don't now, but anyway I was never co-located with them.
> >
> > I wish I knew how to solve this mis-message problem. It's a pretty
> > important use case.
>
>Real solution requires changing Bazaar
>--------------------------------------
>
>Stefan has proposed (IIRC) a solution in which the commit message is
>an annotation on the commit object, rather than part of the hashed
>metadata that gives the commit its identity. This fills me with
>foreboding; I can expand on that, but it's "feelings" so this is not
>the place. It certainly is technically workable, and might even be
>backward compatible with the right implementation.[1]
>
>git uses a different method, adding a concept of "annotations to a
>commit," which are not part of the commit's identity but are
>automatically displayed by tools like "git log". AIUI, this is
>backward compatible, but old git versions can't see the annotations.
>I suspect this would be fairly easy to implement in Bazaar, but I
>don't know anything about the relevant internals. I "like" this
>approach better, but can't prove it.
>
>Workarounds in Bazaar
>---------------------
>
>Empty commit with correct log message. Do this on a branch if
>necessary to associate it directly with the commit whose log needs
>correction. Append "(empty commit - correction of log message)" to
>the log message. If on a branch, the merge log message should be
>"Correct log message of revid:stupid-bazaar-format-id-XXXXXXX."
>
>Duplicate commit on a branch with correct log message. This has the
>potential to cause a conflict, but you'll probably get lucky. Merge
>with merge log message as above.
>
>Tag the commit with "XXX-ignore-bogus-commit-log-use-ChangeLog" where
>XXX is a uniquifier for this style of tag.
>
>Suggested workflow changes
>--------------------------
>
>Don't use bound branches.
>
>Always review log messages of commits you are about to push.
>
>Use something like Didier Verna's patcher.el to ensure that all of the
>work on a particular change is done consistently.
>
>
>Footnotes:
>[1] All the dodges I've thought of that make this possible are (a)
>ugly and (b) mean that old Bazaar versions would not be able to
>display log messages written by new Bazaar versions.
next prev parent reply other threads:[~2010-07-14 3:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-13 22:16 Wrong commit message. What to do now? Karl Fogel
2010-07-13 22:43 ` Óscar Fuentes
2010-07-13 23:17 ` Karl Fogel
2010-07-13 23:33 ` Óscar Fuentes
[not found] ` <871vb6dhm7.fsf@red-bean.com>
2010-07-14 0:54 ` Óscar Fuentes
2010-07-26 22:49 ` Stefan Monnier
2010-07-14 3:23 ` Stephen J. Turnbull
2010-07-14 3:42 ` Karl Fogel [this message]
2010-07-14 6:29 ` Eli Zaretskii
2010-07-14 15:29 ` Karl Fogel
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=878w5ebugg.fsf@red-bean.com \
--to=kfogel@red-bean.com \
--cc=emacs-devel@gnu.org \
--cc=ofv@wanadoo.es \
--cc=stephen@xemacs.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.