From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Option to customize the -m message flag of cvs?
Date: Tue, 06 Jan 2009 11:57:24 +0100 [thread overview]
Message-ID: <49633914.7060604@gmx.at> (raw)
In-Reply-To: <uprj8nome.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
>> 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.
martin
[-- Attachment #2: vc-cvs.el.diff --]
[-- Type: text/plain, Size: 2275 bytes --]
*** 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 10:57 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 [this message]
2009-01-06 16:08 ` Dan Nicolaescu
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=49633914.7060604@gmx.at \
--to=rudalics@gmx.at \
--cc=eliz@gnu.org \
--cc=emacs-devel@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.