diff options
| author | Stefan Monnier | 2005-04-03 21:18:51 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-04-03 21:18:51 +0000 |
| commit | 59bb94103aa6a64da5edfe7aaba79fb9fcb1c1ee (patch) | |
| tree | d7c429b04461b676c96c7635824bf9f1ccbfbcbd | |
| parent | 0c0a9c995ce3f99e0bfe7c25936fe825960cfadf (diff) | |
| download | emacs-59bb94103aa6a64da5edfe7aaba79fb9fcb1c1ee.tar.gz emacs-59bb94103aa6a64da5edfe7aaba79fb9fcb1c1ee.zip | |
(cvs-checkout): Prompt for cvsroot as well.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/pcvs.el | 23 |
2 files changed, 20 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3a400ce3e8b..6b390bdf0b3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2005-04-03 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * pcvs.el (cvs-checkout): Prompt for cvsroot as well. | ||
| 4 | |||
| 1 | 2005-04-03 Glenn Morris <gmorris@ast.cam.ac.uk> | 5 | 2005-04-03 Glenn Morris <gmorris@ast.cam.ac.uk> |
| 2 | 6 | ||
| 3 | * filesets.el (filesets-set-default): Doc fix. | 7 | * filesets.el (filesets-set-default): Doc fix. |
| @@ -7,7 +11,7 @@ | |||
| 7 | * generic.el (define-generic-mode): Add argument to specify | 11 | * generic.el (define-generic-mode): Add argument to specify |
| 8 | keywords for defcustom. | 12 | keywords for defcustom. |
| 9 | (default-generic-mode): Specify :group. | 13 | (default-generic-mode): Specify :group. |
| 10 | 14 | ||
| 11 | * generic-x.el: Specify :group for all generic modes. | 15 | * generic-x.el: Specify :group for all generic modes. |
| 12 | 16 | ||
| 13 | * desktop.el (desktop-no-desktop-file-hook) | 17 | * desktop.el (desktop-no-desktop-file-hook) |
| @@ -7425,8 +7429,7 @@ | |||
| 7425 | 7429 | ||
| 7426 | 2004-09-21 Kenichi Handa <handa@m17n.org> | 7430 | 2004-09-21 Kenichi Handa <handa@m17n.org> |
| 7427 | 7431 | ||
| 7428 | * descr-text.el (describe-char): Checking of quail activation | 7432 | * descr-text.el (describe-char): Checking of quail activation fixed. |
| 7429 | fixed. | ||
| 7430 | 7433 | ||
| 7431 | 2004-09-21 Jay Belanger <belanger@truman.edu> | 7434 | 2004-09-21 Jay Belanger <belanger@truman.edu> |
| 7432 | 7435 | ||
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 7330960b93e..e7139d9cfba 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -918,23 +918,28 @@ This usually doesn't really work but is a handy initval in a prompt." | |||
| 918 | ;;;; | 918 | ;;;; |
| 919 | 919 | ||
| 920 | ;;;###autoload | 920 | ;;;###autoload |
| 921 | (defun cvs-checkout (modules dir flags) | 921 | (defun cvs-checkout (modules dir flags &optional root) |
| 922 | "Run a 'cvs checkout MODULES' in DIR. | 922 | "Run a 'cvs checkout MODULES' in DIR. |
| 923 | Feed the output to a *cvs* buffer, display it in the current window, | 923 | Feed the output to a *cvs* buffer, display it in the current window, |
| 924 | and run `cvs-mode' on it. | 924 | and run `cvs-mode' on it. |
| 925 | 925 | ||
| 926 | With a prefix argument, prompt for cvs FLAGS to use." | 926 | With a prefix argument, prompt for cvs FLAGS to use." |
| 927 | (interactive | 927 | (interactive |
| 928 | (list (cvs-string->strings (read-string "Module(s): " (cvs-get-module))) | 928 | (let ((root (cvs-get-cvsroot))) |
| 929 | (read-directory-name "CVS Checkout Directory: " | 929 | (if (or (null root) current-prefix-arg) |
| 930 | nil default-directory nil) | 930 | (setq root (read-string "CVS Root: "))) |
| 931 | (cvs-add-branch-prefix | 931 | (list (cvs-string->strings (read-string "Module(s): " (cvs-get-module))) |
| 932 | (cvs-flags-query 'cvs-checkout-flags "cvs checkout flags")))) | 932 | (read-directory-name "CVS Checkout Directory: " |
| 933 | nil default-directory nil) | ||
| 934 | (cvs-add-branch-prefix | ||
| 935 | (cvs-flags-query 'cvs-checkout-flags "cvs checkout flags")) | ||
| 936 | root))) | ||
| 933 | (when (eq flags t) | 937 | (when (eq flags t) |
| 934 | (setf flags (cvs-flags-query 'cvs-checkout-flags nil 'noquery))) | 938 | (setf flags (cvs-flags-query 'cvs-checkout-flags nil 'noquery))) |
| 935 | (cvs-cmd-do "checkout" (or dir default-directory) | 939 | (let ((cvs-cvsroot root)) |
| 936 | (append flags modules) nil 'new | 940 | (cvs-cmd-do "checkout" (or dir default-directory) |
| 937 | :noexist t)) | 941 | (append flags modules) nil 'new |
| 942 | :noexist t))) | ||
| 938 | 943 | ||
| 939 | (defun-cvs-mode (cvs-mode-checkout . NOARGS) (dir) | 944 | (defun-cvs-mode (cvs-mode-checkout . NOARGS) (dir) |
| 940 | "Run cvs checkout against the current branch. | 945 | "Run cvs checkout against the current branch. |