* bug#18954: 24.4; vc-log Summary: header is included in log message with svn
@ 2014-11-05 14:45 Ed Avis
2014-11-05 17:24 ` bug#18954: 24.4; vc-log Summary: header is included in the log message Ivan Shmakov
2015-11-25 2:15 ` bug#18954: 24.4; vc-log Summary: header is included in log message with svn Dmitry Gutov
0 siblings, 2 replies; 4+ messages in thread
From: Ed Avis @ 2014-11-05 14:45 UTC (permalink / raw)
To: 18954
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.
In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9)
of 2014-11-03 on wcl-linux04.wcl.local
Configured using:
`configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/var/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
--with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
--with-gpm=no build_alias=x86_64-redhat-linux-gnu
host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ''
Important settings:
value of $LC_COLLATE: C
value of $LC_CTYPE: en_GB.UTF-8
value of $LC_MESSAGES: en_GB.UTF-8
value of $LC_MONETARY: en_GB.UTF-8
value of $LC_NUMERIC: en_GB.UTF-8
value of $LC_TIME: en_GB.UTF-8
value of $LANG: en_GB.UTF-8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
diff-auto-refine-mode: t
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
b RET C-y RET RET RET g o RET C-x b C-g C-x 2 C-x o
C-x b RET ESC < ESC d c r e a t e C-a C-x C-s C-x v
= C-x v v A d d e d SPC c o l u m n SPC w e i g h t
SPC ( e v e n t u a l y l DEL DEL l y SPC t o SPC r
e p l a c e SPC DEL DEL DEL DEL DEL DEL DEL DEL DEL
DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL DEL
s u m s SPC t o SPC 1 , SPC w h i l e SPC i n s t r
u m e n t w e i g h t SPC s u m s SPC t o SPC c o u
n t SPC o f SPC m a r k e t s ) . C-x C-f / v a r TAB
w TAB c g TAB p o s TAB RET C-x v = q C-x v = C-x v
v A d d e DEL DEL DEL DEL C-c C-c C-x b p o s TAB TAB
t r TAB RET C-x 1 ESC x s h e l l RET ESC > s v n SPC
l o g SPC > l o g RET C-x C-f l o g RET C-s A DEL S
u m m a r y : C-a C-p C-p C-p C-p C-p C-p C-p C-p C-p
C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-s C-s
C-a ESC x r e p o r t SPC e m a c s SPC b u g RET
Recent messages:
Finding changes in /home/eda/svn_working/repos/sql/WCL-SQL-LIVE/tradingsystemsprod/vwTradingSystemsRunRiskCapitalByFund.sql...done
Mark set
Press C-c C-c when you are done editing.
Enter a change comment. Type C-c C-c when done
Checking in /home/eda/svn_working/repos/sql/WCL-SQL-LIVE/tradingsystemsprod/vwTradingSystemsRunRiskCapitalByFund.sql...done
Making completion list...
Mark set
Mark saved where search started
Beginning of buffer [8 times]
Mark saved where search started
Load-path shadows:
None found.
Features:
(log-view vc-cvs vc-rcs python json etags tabify imenu man smerge-mode
mule-util pp shadow sort mail-extr emacsbug sendmail sql view ffap
thingatpt url-parse auth-source eieio eieio-core gnus-util
password-cache url-vars nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml
rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util
rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph
nxml-enc xmltok misearch multi-isearch help-mode dabbrev diff-mode vc
vc-dispatcher vc-svn cus-edit wid-edit cus-start cus-load perl-mode
pcmpl-unix dired xterm time-date log-edit easy-mmode message format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils
gmm-utils mailheader pcvs-util add-log server csharp-mode advice
help-fns byte-opt bytecomp byte-compile cconv cc-langs cc-mode cc-fonts
easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs zoom-frm frame-cmds frame-fns cl-macs avoid cl gv cl-loaddefs
cl-lib compile shell pcomplete comint ring ansi-color tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
Memory information:
((conses 16 1436940 117800)
(symbols 48 29085 0)
(miscs 40 379 3377)
(strings 32 52900 10929)
(string-bytes 1 24396650)
(vectors 16 28479)
(vector-slots 8 1314519 219462)
(floats 8 266 834)
(intervals 56 119875 1515)
(buffers 960 79)
(heap 1024 80654 14523))
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#18954: 24.4; vc-log Summary: header is included in the log message
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
2015-11-25 2:25 ` Dmitry Gutov
2015-11-25 2:15 ` bug#18954: 24.4; vc-log Summary: header is included in log message with svn Dmitry Gutov
1 sibling, 1 reply; 4+ messages in thread
From: Ivan Shmakov @ 2014-11-05 17:24 UTC (permalink / raw)
To: 18954
>>>>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#18954: 24.4; vc-log Summary: header is included in log message with svn
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 ` bug#18954: 24.4; vc-log Summary: header is included in the log message Ivan Shmakov
@ 2015-11-25 2:15 ` Dmitry Gutov
1 sibling, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2015-11-25 2:15 UTC (permalink / raw)
To: Ed Avis; +Cc: 18954-done
Ed Avis <eda@waniasset.com> writes:
> 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.
Sorry for taking so long, but this bug should be fixed now, in the
branch emacs-25.
Please test at your earliest convenience.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#18954: 24.4; vc-log Summary: header is included in the log message
2014-11-05 17:24 ` bug#18954: 24.4; vc-log Summary: header is included in the log message Ivan Shmakov
@ 2015-11-25 2:25 ` Dmitry Gutov
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry Gutov @ 2015-11-25 2:25 UTC (permalink / raw)
To: Ivan Shmakov; +Cc: 18954
Ivan Shmakov <ivan@siamics.net> writes:
> 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.)
Too quick a scan. log-edit-extract-headers recognizes the Summary header
by default, so the difference must be betwen backends that pipe their
commit message through that function, and those that don't.
> If so, this bug actually affects most of the VCS supported by
> the Emacs VC facility, and not just Subversion.
Quite a few of those, yes: RCS, SRC, SCCS and CVS must have this
problem, as well as the obsolete MCVS and Arch.
I'm puzzled, however, why hasn't anyone else reported this problem by
now? Maybe nobody uses most of those, but what about CVS? Do its users
just stay on older Emacs versions?
> • 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.
The easiest solution seems to be to teach all VC backends to recognize
it. It would be rather hard for me to test the results, though.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-25 2:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` bug#18954: 24.4; vc-log Summary: header is included in the log message Ivan Shmakov
2015-11-25 2:25 ` Dmitry Gutov
2015-11-25 2:15 ` bug#18954: 24.4; vc-log Summary: header is included in log message with svn Dmitry Gutov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).