From: Dan Nicolaescu <dann@ics.uci.edu>
To: martin rudalics <rudalics@gmx.at>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Option to customize the -m message flag of cvs?
Date: Tue, 6 Jan 2009 08:08:31 -0800 (PST) [thread overview]
Message-ID: <200901061608.n06G8V4j001426@mothra.ics.uci.edu> (raw)
In-Reply-To: <49633914.7060604@gmx.at> (martin rudalics's message of "Tue, 06 Jan 2009 11:57:24 +0100")
martin rudalics <rudalics@gmx.at> writes:
> >> Does `vc-dir' work for you?
> >
> > I don't use it.
>
> Apparently only Juanma and me are presently using `vc-dir' on Windows.
> So if there are no objections I'd like to apply the attached patch.
I'd like to strongly object to this type of change.
The same goal can be accomplished by using a wrapper script for the cvs
command that changes -m to -M, or by changing the CVSNT sources not to
do this.
This patch is proposed because CVSNT chose to annoy they users into
paying for a license by inserting a commercial in the commit message.
And asking users to use the non-standard -M flag in order to avoid
that annoyance.
There is no guarantee that the same thing will not be done in the future
to other commands: like log, diff, annotate, etc. Which would mean that
we'd have to continuously change both vc-cvs.el and PCL-CVS (which is
not done here, but it's as needed) to keep up.
The user needs to explicitly do something anyway, so better just have
the user either avoid CVSNT, change the CVSNT source (and recompile)or
use a wrapper script instead of littering the emacs code with this type
of needless changes.
> martin
> *** vc-cvs.el.~1.163.~ 2009-01-05 10:00:27.031250000 +0100
> --- vc-cvs.el 2009-01-05 10:19:29.265625000 +0100
> ***************
> *** 180,185 ****
> --- 180,194 ----
> :version "22.1"
> :group 'vc)
>
> + (defcustom vc-cvs-message-switch "-m"
> + "String passed as message switch to CVS.
> + By default this is \"-m\". With more recent versions of CVSNT
> + you might want to set this to \"-M\" to avoid inserting adverts
> + in commit logs."
> + :type 'string
> + :version "23.1"
> + :group 'vc)
> +
> ;;;
> ;;; Internal variables
> ;;;
> ***************
> *** 288,294 ****
> (apply 'vc-cvs-command nil 0 files
> "add"
> (and comment (string-match "[^\t\n ]" comment)
> ! (concat "-m" comment))
> (vc-switches 'CVS 'register)))
>
> (defun vc-cvs-responsible-p (file)
> --- 297,303 ----
> (apply 'vc-cvs-command nil 0 files
> "add"
> (and comment (string-match "[^\t\n ]" comment)
> ! (concat vc-cvs-message-switch comment))
> (vc-switches 'CVS 'register)))
>
> (defun vc-cvs-responsible-p (file)
> ***************
> *** 325,331 ****
> files)))
> (let ((status (apply 'vc-cvs-command nil 1 files
> "ci" (if rev (concat "-r" rev))
> ! (concat "-m" comment)
> (vc-switches 'CVS 'checkin))))
> (set-buffer "*vc*")
> (goto-char (point-min))
> --- 334,340 ----
> files)))
> (let ((status (apply 'vc-cvs-command nil 1 files
> "ci" (if rev (concat "-r" rev))
> ! (concat vc-cvs-message-switch comment)
> (vc-switches 'CVS 'checkin))))
> (set-buffer "*vc*")
> (goto-char (point-min))
> ***************
> *** 485,491 ****
> (defun vc-cvs-modify-change-comment (files rev comment)
> "Modify the change comments for FILES on a specified REV.
> Will fail unless you have administrative privileges on the repo."
> ! (vc-cvs-command nil 0 files "admin" (concat "-m" rev ":" comment)))
>
> ;;;
> ;;; History functions
> --- 494,501 ----
> (defun vc-cvs-modify-change-comment (files rev comment)
> "Modify the change comments for FILES on a specified REV.
> Will fail unless you have administrative privileges on the repo."
> ! (vc-cvs-command
> ! nil 0 files "admin" (concat vc-cvs-message-switch rev ":" comment)))
>
> ;;;
> ;;; History functions
next prev parent reply other threads:[~2009-01-06 16:08 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-29 12:58 Option to customize the -m message flag of cvs? Juanma Barranquero
2008-12-29 17:10 ` martin rudalics
2008-12-29 19:14 ` Eli Zaretskii
2008-12-29 19:57 ` Juanma Barranquero
2008-12-29 20:52 ` Eli Zaretskii
2008-12-29 21:18 ` martin rudalics
2008-12-30 4:04 ` Eli Zaretskii
2008-12-30 7:26 ` martin rudalics
2008-12-30 22:05 ` Eli Zaretskii
2008-12-31 9:15 ` martin rudalics
2008-12-31 19:14 ` Eli Zaretskii
2008-12-31 21:28 ` martin rudalics
2009-01-06 10:57 ` martin rudalics
2009-01-06 16:08 ` Dan Nicolaescu [this message]
2009-01-06 17:06 ` Juanma Barranquero
2009-01-06 20:49 ` Eli Zaretskii
2009-01-06 20:59 ` Juanma Barranquero
2009-01-06 21:10 ` Eli Zaretskii
2009-01-07 8:18 ` martin rudalics
2009-01-07 21:21 ` Eli Zaretskii
2009-01-06 18:26 ` Stefan Monnier
2009-01-06 20:21 ` Juanma Barranquero
2009-01-12 22:18 ` Sam Steingold
2009-01-12 23:52 ` Juanma Barranquero
2009-01-13 1:57 ` dhruva
2009-01-13 1:59 ` dhruva
2009-01-13 18:51 ` Sam Steingold
2009-01-13 21:20 ` Juanma Barranquero
2009-01-06 22:32 ` mail
2009-01-07 8:52 ` Juanma Barranquero
2009-01-06 20:46 ` Eli Zaretskii
2009-01-06 20:53 ` Juanma Barranquero
2009-01-06 21:01 ` Eli Zaretskii
2009-01-06 21:06 ` Juanma Barranquero
2009-01-06 21:14 ` Eli Zaretskii
2009-01-06 21:24 ` Juanma Barranquero
2009-01-06 21:35 ` Stefan Monnier
2008-12-29 23:29 ` Juanma Barranquero
2008-12-30 9:34 ` Juanma Barranquero
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=200901061608.n06G8V4j001426@mothra.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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.