changeset 13111:f7fca58643bc

(vc-next-action-on-file): When locking the latest trunk version, use empty version number.
author André Spiegel <spiegel@gnu.org>
date Wed, 04 Oct 1995 15:13:04 +0000
parents 206ed64fe032
children 7c5e73b8aa04
files lisp/vc.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Tue Oct 03 18:43:12 1995 +0000
+++ b/lisp/vc.el	Wed Oct 04 15:13:04 1995 +0000
@@ -647,7 +647,9 @@
 		(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