diff options
| author | Stefan Monnier | 2002-10-08 15:38:28 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-10-08 15:38:28 +0000 |
| commit | ea05db0198fceec90da3d0c506f1bad83f8bc4ab (patch) | |
| tree | c2d2d8855f74767a0266ff374cec5da84696039f | |
| parent | 52876673e6c7255e2d467bd840290eec2966c27f (diff) | |
| download | emacs-ea05db0198fceec90da3d0c506f1bad83f8bc4ab.tar.gz emacs-ea05db0198fceec90da3d0c506f1bad83f8bc4ab.zip | |
(vc-cvs-find-version): New fun.
| -rw-r--r-- | lisp/vc-cvs.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index b5576e9df63..759d1a43166 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.42 2002/07/03 14:26:51 lektu Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.43 2002/10/04 18:38:53 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -368,6 +368,16 @@ This is only possible if CVS is responsible for FILE's directory." | |||
| 368 | (if (and rev (not (vc-cvs-valid-symbolic-tag-name-p rev))) | 368 | (if (and rev (not (vc-cvs-valid-symbolic-tag-name-p rev))) |
| 369 | (vc-cvs-command nil 0 file "update" "-A")))) | 369 | (vc-cvs-command nil 0 file "update" "-A")))) |
| 370 | 370 | ||
| 371 | (defun vc-cvs-find-version (file rev buffer) | ||
| 372 | (apply 'vc-cvs-command | ||
| 373 | buffer 0 file | ||
| 374 | "-Q" ; suppress diagnostic output | ||
| 375 | "update" | ||
| 376 | (and rev (not (string= rev "")) | ||
| 377 | (concat "-r" rev)) | ||
| 378 | "-p" | ||
| 379 | vc-checkout-switches)) | ||
| 380 | |||
| 371 | (defun vc-cvs-checkout (file &optional editable rev workfile) | 381 | (defun vc-cvs-checkout (file &optional editable rev workfile) |
| 372 | "Retrieve a revision of FILE into a WORKFILE. | 382 | "Retrieve a revision of FILE into a WORKFILE. |
| 373 | EDITABLE non-nil means that the file should be writable. | 383 | EDITABLE non-nil means that the file should be writable. |