mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(vc-next-action-on-file): When locking the latest trunk version,
use empty version number.
This commit is contained in:
parent
597dd755eb
commit
1ba1cade16
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue