aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/pcvs.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/pcvs.el')
-rw-r--r--lisp/pcvs.el21
1 files changed, 18 insertions, 3 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 0a666927c52..0c8fe92f2d6 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -1,7 +1,7 @@
1;;; pcvs.el --- a front-end to CVS 1;;; pcvs.el --- a front-end to CVS
2 2
3;; Copyright (C) 1991,92,93,94,95,95,97,98,99,2000,02,03,2004 3;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4;; Free Software Foundation, Inc. 4;; 2000, 2002, 2003, 2004 Free Software Foundation, Inc.
5 5
6;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com 6;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com
7;; (Per Cederqvist) ceder@lysator.liu.se 7;; (Per Cederqvist) ceder@lysator.liu.se
@@ -923,6 +923,21 @@ With a prefix argument, prompt for cvs FLAGS to use."
923 (append flags modules) nil 'new 923 (append flags modules) nil 'new
924 :noexist t)) 924 :noexist t))
925 925
926(defun-cvs-mode (cvs-mode-checkout . NOARGS) (dir)
927 "Run cvs checkout against the current branch.
928The files are stored to DIR."
929 (interactive
930 (let* ((branch (cvs-prefix-get 'cvs-branch-prefix))
931 (prompt (format "CVS Checkout Directory for `%s%s': "
932 (cvs-get-module)
933 (if branch (format " (branch: %s)" branch)
934 ""))))
935 (list (read-directory-name prompt nil default-directory nil))))
936 (let ((modules (cvs-string->strings (cvs-get-module)))
937 (flags (cvs-add-branch-prefix
938 (cvs-flags-query 'cvs-checkout-flags "cvs checkout flags")))
939 (cvs-cvsroot (cvs-get-cvsroot)))
940 (cvs-checkout modules dir flags)))
926 941
927;;;; 942;;;;
928;;;; The code for running a "cvs update" and friends in various ways. 943;;;; The code for running a "cvs update" and friends in various ways.
@@ -2353,5 +2368,5 @@ The exact behavior is determined also by `cvs-dired-use-hook'."
2353 2368
2354(provide 'pcvs) 2369(provide 'pcvs)
2355 2370
2356;;; arch-tag: 8e3a7494-0453-4389-9ab3-a557ce9fab61 2371;; arch-tag: 8e3a7494-0453-4389-9ab3-a557ce9fab61
2357;;; pcvs.el ends here 2372;;; pcvs.el ends here