From: Ivan Shmakov <ivan@siamics.net>
To: 18954@debbugs.gnu.org
Subject: bug#18954: 24.4; vc-log Summary: header is included in the log message
Date: Wed, 05 Nov 2014 17:24:04 +0000 [thread overview]
Message-ID: <874mud7e8b.fsf@violet.siamics.net> (raw)
In-Reply-To: <7E039918541B4C4183BFDB8F015C7430813FAC@WCL-EXCH02.wcl.local> (Ed Avis's message of "Wed, 5 Nov 2014 14:45:54 +0000")
>>>>> Ed Avis <eda@waniasset.com> writes:
> I use vc-mode to edit and commit files in an svn repository. On
> running vc-next-action on a modified file, a log message buffer
> appears containing the text Summary: and a blank line. Typing in
> this buffer adds more text after Summary:. On committing with C-c
> C-c, the literal text Summary: is included as part of the svn log
> message, as you can see afterwards by running 'svn log'.
> Please see <http://emacs.stackexchange.com/questions/2717/> where
> forum user Stefan indicated that this was a bug (presumably, the
> Summary: header should be stripped out when sending the text to svn)
> and asked to report it.
This pseudo-header (along with an optional Author:) is added by
the log-edit-insert-message-template command, itself called from
log-edit-hook. Thus, as a work-around (which I happen to use
myself), it’s possible to simply remove the function from the
hook, like:
(eval-after-load 'log-edit
'(remove-hook 'log-edit-hook 'log-edit-insert-message-template))
A quick scan through vc/*.el suggest that the Summary: header is
only recognized by vc-arch.el (which, however, doesn’t seem to
take care of Author:), while only vc-git.el seems to recognize
Author: (and doesn’t seem to care about Summary: in turn.)
If so, this bug actually affects most of the VCS supported by
the Emacs VC facility, and not just Subversion.
I believe this behavior is highly inconsistent, and would rather
suggest either of the following options.
• Amend the log-edit-insert-message-template function to only
generate the template if /either/ explicitly requested by the
user (as in: via a yes-maybe-no variable setting, or by
running it interactively) /or/ when the headers in question
are known to be recognized by the target VCS.
• Remove the function from the hook’s default value.
Also to note that log-edit-insert-cvs-rcstemplate apparently
relies on the existence of CVS/Root to decide if its respective
template should be added. My guess is that it should instead
check the VCS chosen by the user (as in: vc-switch-backend) for
the fileset in question.
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
next prev parent reply other threads:[~2014-11-05 17:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 14:45 bug#18954: 24.4; vc-log Summary: header is included in log message with svn Ed Avis
2014-11-05 17:24 ` Ivan Shmakov [this message]
2015-11-25 2:25 ` bug#18954: 24.4; vc-log Summary: header is included in the log message Dmitry Gutov
2015-11-25 2:15 ` bug#18954: 24.4; vc-log Summary: header is included in log message with svn Dmitry Gutov
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=874mud7e8b.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=18954@debbugs.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.