*** New user option 'vc-git-log-switches'.
String or list of strings specifying switches for Git log under VC.
+*** Command 'vc-switch-backend' is now obsolete.
+If you are still using it with any regularity, please file a bug
+report with some details.
+
** Gnus
+++
VC's perspective on FILE, it does not register or unregister it.
By default, this command cycles through the registered backends.
To get a prompt, use a prefix argument."
+ (declare (obsolete nil "28.1"))
(interactive
(list
(or buffer-file-name
(if registered
(set-file-modes file (logior (file-modes file) 128))
;; `registered' might have switched under us.
- (vc-switch-backend file old-backend)
+ (with-suppressed-warnings ((obsolete vc-switch-backend))
+ (vc-switch-backend file old-backend))
(let* ((rev (vc-working-revision file))
(modified-file (and edited (make-temp-file file)))
(unmodified-file (and modified-file (vc-version-backup-file file))))
(vc-revert-file file))))
(vc-call-backend new-backend 'receive-file file rev))
(when modified-file
- (vc-switch-backend file new-backend)
+ (with-suppressed-warnings ((obsolete vc-switch-backend))
+ (vc-switch-backend file new-backend))
(unless (eq (vc-checkout-model new-backend (list file)) 'implicit)
(vc-checkout file))
(rename-file modified-file file 'ok-if-already-exists)
(vc-file-setprop file 'vc-checkout-time nil)))))
(when move
- (vc-switch-backend file old-backend)
+ (with-suppressed-warnings ((obsolete vc-switch-backend))
+ (vc-switch-backend file old-backend))
(setq comment (vc-call-backend old-backend 'comment-history file))
(vc-call-backend old-backend 'unregister file))
- (vc-switch-backend file new-backend)
+ (with-suppressed-warnings ((obsolete vc-switch-backend))
+ (vc-switch-backend file new-backend))
(when (or move edited)
(vc-file-setprop file 'vc-state 'edited)
(vc-mode-line file new-backend)