# HG changeset patch # User Andr Spiegel # Date 974381883 0 # Node ID 5411250e7971ad27db79becdabd2d0b36e82dd28 # Parent 62062a9538dd794ead4f143b45b7a593b2afcf5d (vc-cvs-annotate-command): New optional arg VERSION. Use vc-do-command to perform the annotation, not call-process. diff -r 62062a9538dd -r 5411250e7971 lisp/vc-cvs.el --- a/lisp/vc-cvs.el Thu Nov 16 12:43:05 2000 +0000 +++ b/lisp/vc-cvs.el Thu Nov 16 13:38:03 2000 +0000 @@ -5,7 +5,7 @@ ;; Author: FSF (see vc.el for full credits) ;; Maintainer: Andre Spiegel -;; $Id: vc-cvs.el,v 1.7 2000/10/27 11:37:17 spiegel Exp $ +;; $Id: vc-cvs.el,v 1.8 2000/10/27 15:06:27 spiegel Exp $ ;; This file is part of GNU Emacs. @@ -649,10 +649,11 @@ (vc-mode-line file) (message "Checking out %s...done" filename))))) -(defun vc-cvs-annotate-command (file buffer) - "Execute \"cvs annotate\" on FILE. -Use `call-process' and insert the contents in BUFFER." - (call-process "cvs" nil buffer nil "annotate" file)) +(defun vc-cvs-annotate-command (file buffer &optional version) + "Execute \"cvs annotate\" on FILE, inserting the contents in BUFFER. +Optional arg VERSION is a version to annotate from." + (vc-do-command buffer 0 "cvs" file "annotate" (if version + (concat "-r" version)))) (defvar vc-cvs-local-month-numbers '(("Jan" . 1) ("Feb" . 2) ("Mar" . 3) ("Apr" . 4)