# HG changeset patch # User Andr Spiegel # Date 812819584 0 # Node ID f7fca58643bc1746679521daaf3cb8e8b3240692 # Parent 206ed64fe032e56abb90123a41f655bc867ae866 (vc-next-action-on-file): When locking the latest trunk version, use empty version number. diff -r 206ed64fe032 -r f7fca58643bc lisp/vc.el --- 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