]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-cvs-checkout): Don't leave the branch when REV is t.
authorAndré Spiegel <spiegel@gnu.org>
Fri, 23 May 2003 17:57:29 +0000 (17:57 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Fri, 23 May 2003 17:57:29 +0000 (17:57 +0000)
From Don Provan <dprovan@bivio.net>.

lisp/vc-cvs.el

index 798ee5c6803e37d3b2c77d3b942df18817cffab9..e2374c0e7f41cf3de96b40204a7f2d2ed9bcbf73 100644 (file)
@@ -5,7 +5,7 @@
 ;; Author:      FSF (see vc.el for full credits)
 ;; Maintainer:  Andre Spiegel <spiegel@gnu.org>
 
-;; $Id: vc-cvs.el,v 1.59 2003/05/08 20:44:50 monnier Exp $
+;; $Id: vc-cvs.el,v 1.60 2003/05/09 14:32:01 monnier Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -428,11 +428,14 @@ REV is the revision to check out into WORKFILE."
                                        'implicit)))
                           "-w")
                      "update"
-                     ;; default for verbose checkout: clear the sticky tag so
-                     ;; that the actual update will get the head of the trunk
-                     (if (or (not rev) (eq rev t) (string= rev ""))
-                         "-A"
-                       (concat "-r" rev))
+                     (when rev
+                       (unless (eq rev t)
+                         ;; default for verbose checkout: clear the
+                         ;; sticky tag so that the actual update will
+                         ;; get the head of the trunk
+                         (if (string= rev "")
+                             "-A"
+                           (concat "-r" rev))))
                      switches))))
        (vc-mode-line file)
        (message "Checking out %s...done" filename)))))