From 1ba1cade16cbd87fae03244779d24dca1eaecb14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Spiegel?= Date: Wed, 4 Oct 1995 15:13:04 +0000 Subject: [PATCH] (vc-next-action-on-file): When locking the latest trunk version, use empty version number. --- lisp/vc.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/vc.el b/lisp/vc.el index 266d454be7c..54d43ef08a5 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -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 -- 2.39.2