diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/cvs-status.el | 22 |
2 files changed, 26 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3f6a8ced5c4..b149e64c024 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-08-22 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * cvs-status.el (cvs-status-checkout): New function. | ||
| 4 | (cvs-status-mode-map): Add a key definition for `cvs-status-checkout'. | ||
| 5 | |||
| 1 | 2004-08-21 David Kastrup <dak@gnu.org> | 6 | 2004-08-21 David Kastrup <dak@gnu.org> |
| 2 | 7 | ||
| 3 | * net/ange-ftp.el (ange-ftp-hash-entry-exists-p) | 8 | * net/ange-ftp.el (ange-ftp-hash-entry-exists-p) |
diff --git a/lisp/cvs-status.el b/lisp/cvs-status.el index b03182d87e4..b00984b60f1 100644 --- a/lisp/cvs-status.el +++ b/lisp/cvs-status.el | |||
| @@ -48,7 +48,8 @@ | |||
| 48 | ("\M-n" . cvs-status-next) | 48 | ("\M-n" . cvs-status-next) |
| 49 | ("\M-p" . cvs-status-prev) | 49 | ("\M-p" . cvs-status-prev) |
| 50 | ("t" . cvs-status-cvstrees) | 50 | ("t" . cvs-status-cvstrees) |
| 51 | ("T" . cvs-status-trees)) | 51 | ("T" . cvs-status-trees) |
| 52 | (">" . cvs-status-checkout)) | ||
| 52 | "CVS-Status' keymap." | 53 | "CVS-Status' keymap." |
| 53 | :group 'cvs-status | 54 | :group 'cvs-status |
| 54 | :inherit 'cvs-mode-map) | 55 | :inherit 'cvs-mode-map) |
| @@ -464,6 +465,25 @@ Optional prefix ARG chooses between two representations." | |||
| 464 | ;;(sit-for 0) | 465 | ;;(sit-for 0) |
| 465 | )))))) | 466 | )))))) |
| 466 | 467 | ||
| 468 | (defun-cvs-mode (cvs-status-checkout . NOARGS) (dir) | ||
| 469 | "Run cvs-checkout against the tag under the point. | ||
| 470 | The files are stored to DIR." | ||
| 471 | (interactive | ||
| 472 | (let* ((module (cvs-get-module)) | ||
| 473 | (branch (cvs-prefix-get 'cvs-branch-prefix)) | ||
| 474 | (prompt (format "CVS Checkout Directory for `%s%s': " | ||
| 475 | module | ||
| 476 | (if branch (format "(branch: %s)" branch) | ||
| 477 | "")))) | ||
| 478 | (list | ||
| 479 | (read-directory-name prompt | ||
| 480 | nil default-directory nil)))) | ||
| 481 | (let ((modules (cvs-string->strings (cvs-get-module))) | ||
| 482 | (flags (cvs-add-branch-prefix | ||
| 483 | (cvs-flags-query 'cvs-checkout-flags "cvs checkout flags"))) | ||
| 484 | (cvs-cvsroot (cvs-get-cvsroot))) | ||
| 485 | (cvs-checkout modules dir flags))) | ||
| 486 | |||
| 467 | (defun cvs-tree-tags-insert (tags prev) | 487 | (defun cvs-tree-tags-insert (tags prev) |
| 468 | (when tags | 488 | (when tags |
| 469 | (let* ((tag (car tags)) | 489 | (let* ((tag (car tags)) |