aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/vc-cvs.el8
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7a14c1a419d..124a1cf0063 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -43,14 +43,19 @@
43 * international/mule-cmds.el (reset-language-environment): 43 * international/mule-cmds.el (reset-language-environment):
44 Handle coding-systems not being defined yet. 44 Handle coding-systems not being defined yet.
45 45
462002-04-07 Sam Steingold <sds@gnu.org> 462002-04-08 Sam Steingold <sds@gnu.org>
47 47
48 * vc-cvs.el (vc-cvs-checkin): Pass the required argument to `error'. 48 * vc-cvs.el (vc-cvs-valid-version-number-p): New function.
49 (vc-cvs-checkin): Use it.
49 50
502002-04-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 512002-04-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
51 52
52 * files.el (display-time-string): Fix last change. 53 * files.el (display-time-string): Fix last change.
53 54
552002-04-07 Sam Steingold <sds@gnu.org>
56
57 * vc-cvs.el (vc-cvs-checkin): Pass the required argument to `error'.
58
542002-04-07 Jason Rumney <jasonr@gnu.org> 592002-04-07 Jason Rumney <jasonr@gnu.org>
55 60
56 * international/mule-cmds.el (set-default-coding-systems) 61 * international/mule-cmds.el (set-default-coding-systems)
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 5a92f8fa0f3..67c209eb31b 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.38 2002/03/28 14:27:30 spiegel Exp $ 8;; $Id: vc-cvs.el,v 1.39 2002/04/08 13:38:48 sds Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -322,7 +322,7 @@ This is only possible if CVS is responsible for FILE's directory."
322 (list vc-checkin-switches) 322 (list vc-checkin-switches)
323 vc-checkin-switches)) 323 vc-checkin-switches))
324 status) 324 status)
325 (if (not rev) 325 (if (or (not rev) (vc-cvs-valid-version-number-p rev))
326 (setq status (apply 'vc-cvs-command nil 1 file 326 (setq status (apply 'vc-cvs-command nil 1 file
327 "ci" (if rev (concat "-r" rev)) 327 "ci" (if rev (concat "-r" rev))
328 (concat "-m" comment) 328 (concat "-m" comment)
@@ -816,6 +816,10 @@ essential information."
816 (and (string-match "^[a-zA-Z]" tag) 816 (and (string-match "^[a-zA-Z]" tag)
817 (not (string-match "[^a-z0-9A-Z-_]" tag)))) 817 (not (string-match "[^a-z0-9A-Z-_]" tag))))
818 818
819(defun vc-cvs-valid-version-number-p (tag)
820 "Return non-nil if TAG is a valid version number."
821 (and (string-match "^[0-9]" tag)
822 (not (string-match "[^0-9.]" tag))))
819 823
820(defun vc-cvs-parse-sticky-tag (match-type match-tag) 824(defun vc-cvs-parse-sticky-tag (match-type match-tag)
821 "Parse and return the sticky tag as a string. 825 "Parse and return the sticky tag as a string.