aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThien-Thi Nguyen2004-11-03 14:16:14 +0000
committerThien-Thi Nguyen2004-11-03 14:16:14 +0000
commitbc99a9685c7f646dc5e1db1404ad82ca2f6ef781 (patch)
tree12cf75474b261cade7b7a7dae774c285224bbf11
parent49e6099b1e840b51149c40a97547421b02292dc1 (diff)
downloademacs-bc99a9685c7f646dc5e1db1404ad82ca2f6ef781.tar.gz
emacs-bc99a9685c7f646dc5e1db1404ad82ca2f6ef781.zip
(vc-cvs-annotate-command): Delete extraneous lines from beginning of buffer.
-rw-r--r--lisp/vc-cvs.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 0c1e6bc1745..273700ed6a4 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -5,7 +5,7 @@
5;; Author: FSF (see vc.el for full credits) 5;; Author: FSF (see vc.el for full credits)
6;; Maintainer: Andre Spiegel <spiegel@gnu.org> 6;; Maintainer: Andre Spiegel <spiegel@gnu.org>
7 7
8;; $Id: vc-cvs.el,v 1.67 2004/01/20 17:41:18 uid65624 Exp $ 8;; $Id$
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -89,12 +89,12 @@ and past information to determine the current status of a file.
89The value can also be a regular expression or list of regular 89The value can also be a regular expression or list of regular
90expressions to match against the host name of a repository; then VC 90expressions to match against the host name of a repository; then VC
91only stays local for hosts that match it. Alternatively, the value 91only stays local for hosts that match it. Alternatively, the value
92can be a list of regular expressions where the first element is the 92can be a list of regular expressions where the first element is the
93symbol `except'; then VC always stays local except for hosts matched 93symbol `except'; then VC always stays local except for hosts matched
94by these regular expressions." 94by these regular expressions."
95 :type '(choice (const :tag "Always stay local" t) 95 :type '(choice (const :tag "Always stay local" t)
96 (const :tag "Don't stay local" nil) 96 (const :tag "Don't stay local" nil)
97 (list :format "\nExamine hostname and %v" :tag "Examine hostname ..." 97 (list :format "\nExamine hostname and %v" :tag "Examine hostname ..."
98 (set :format "%v" :inline t (const :format "%t" :tag "don't" except)) 98 (set :format "%v" :inline t (const :format "%t" :tag "don't" except))
99 (regexp :format " stay local,\n%t: %v" :tag "if it matches") 99 (regexp :format " stay local,\n%t: %v" :tag "if it matches")
100 (repeat :format "%v%i\n" :inline t (regexp :tag "or")))) 100 (repeat :format "%v%i\n" :inline t (regexp :tag "or"))))
@@ -590,7 +590,11 @@ The changes are between FIRST-VERSION and SECOND-VERSION."
590(defun vc-cvs-annotate-command (file buffer &optional version) 590(defun vc-cvs-annotate-command (file buffer &optional version)
591 "Execute \"cvs annotate\" on FILE, inserting the contents in BUFFER. 591 "Execute \"cvs annotate\" on FILE, inserting the contents in BUFFER.
592Optional arg VERSION is a version to annotate from." 592Optional arg VERSION is a version to annotate from."
593 (vc-cvs-command buffer 0 file "annotate" (if version (concat "-r" version)))) 593 (vc-cvs-command buffer 0 file "annotate" (if version (concat "-r" version)))
594 (with-current-buffer buffer
595 (goto-char (point-min))
596 (re-search-forward "^[0-9]")
597 (delete-region (point-min) (1- (point)))))
594 598
595(defun vc-cvs-annotate-current-time () 599(defun vc-cvs-annotate-current-time ()
596 "Return the current time, based at midnight of the current day, and 600 "Return the current time, based at midnight of the current day, and
@@ -839,7 +843,7 @@ CVS/Entries should only be accessed through this function."
839 (let ((coding-system-for-read (or file-name-coding-system 843 (let ((coding-system-for-read (or file-name-coding-system
840 default-file-name-coding-system))) 844 default-file-name-coding-system)))
841 (vc-insert-file (expand-file-name "CVS/Entries" dir)))) 845 (vc-insert-file (expand-file-name "CVS/Entries" dir))))
842 846
843(defun vc-cvs-valid-symbolic-tag-name-p (tag) 847(defun vc-cvs-valid-symbolic-tag-name-p (tag)
844 "Return non-nil if TAG is a valid symbolic tag name." 848 "Return non-nil if TAG is a valid symbolic tag name."
845 ;; According to the CVS manual, a valid symbolic tag must start with 849 ;; According to the CVS manual, a valid symbolic tag must start with
@@ -929,7 +933,7 @@ is non-nil."
929 "\\(.*\\)")) ;Sticky tag 933 "\\(.*\\)")) ;Sticky tag
930 (vc-file-setprop file 'vc-workfile-version (match-string 1)) 934 (vc-file-setprop file 'vc-workfile-version (match-string 1))
931 (vc-file-setprop file 'vc-cvs-sticky-tag 935 (vc-file-setprop file 'vc-cvs-sticky-tag
932 (vc-cvs-parse-sticky-tag (match-string 4) 936 (vc-cvs-parse-sticky-tag (match-string 4)
933 (match-string 5))) 937 (match-string 5)))
934 ;; Compare checkout time and modification time. 938 ;; Compare checkout time and modification time.
935 ;; This is intentionally different from the algorithm that CVS uses 939 ;; This is intentionally different from the algorithm that CVS uses