emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch against vc-rcs.el: vc-rcs-checkin: allows user login to be add


From: Uwe Brauer
Subject: Re: patch against vc-rcs.el: vc-rcs-checkin: allows user login to be added
Date: Mon, 07 Sep 2015 20:46:49 +0000
User-agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/25.0.50 (gnu/linux)

>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:

   >> +(defvar vc-rcs-ask-for-login nil
   >> +  "*Variable which allows to change the login Id by
   >> a y-or-n question.")

   > How 'bout instead making vc-rcs.el use the "Author:" header in the
   > commit message, instead of adding a config var plus a prompt?

   > Try

   >    grep "\"Author" lisp/vc/vc*.el


Sorry but your grep command returns an error :'(

In any case I presume you mean functions like this


(defun vc-hg-checkin (files comment)
  "Hg-specific version of `vc-backend-checkin'.
REV is ignored."
  (apply 'vc-hg-command nil 0 files
         (nconc (list "commit" "-m")
                (log-edit-extract-headers '(("Author" . "--user")
                                            ("Date" . "--date"))
                                          comment))))


So it is log-edit-extract-headers

I will play around a bit not sure that will work easily.
Thanks.

   > to see how other backends do it.


   >         Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]