]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-next-action-on-file): When locking the latest trunk version,
authorAndré Spiegel <spiegel@gnu.org>
Wed, 4 Oct 1995 15:13:04 +0000 (15:13 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Wed, 4 Oct 1995 15:13:04 +0000 (15:13 +0000)
use empty version number.

lisp/vc.el

index 266d454be7c15b6cd920cf7d2ea89ee6f32c5a0b..54d43ef08a552681c0bf7e8028966a4896e15f14 100644 (file)
@@ -647,7 +647,9 @@ to an optional list of FLAGS."
                (vc-checkout-writable-buffer file)
              (if (yes-or-no-p "Lock the latest version instead? ")
                  (vc-checkout-writable-buffer file
-                    (vc-branch-part (vc-workfile-version file))))))
+                    (if (vc-trunk-p (vc-workfile-version file)) 
+                         ""  ;; this means check out latest on trunk
+                       (vc-branch-part (vc-workfile-version file)))))))
          )))
 
      ;; a checked-out version exists, but the user may not own the lock