if the backend is known not to support it.
2013-02-01 Glenn Morris <rgm@gnu.org>
+ * vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
+ if the backend is known not to support it.
+
* imenu.el (imenu-default-create-index-function):
Tweak infinite loop test to check for forward motion as well as none.
"))
(bindings--define-key map [undo]
'(menu-item "Undo Last Check-In" vc-rollback
+ :enable (let ((backend (if buffer-file-name
+ (vc-backend buffer-file-name))))
+ (or (not backend)
+ (vc-find-backend-function backend 'rollback)))
:help "Remove the most recent changeset committed to the repository"))
(bindings--define-key map [vc-revert]
'(menu-item "Revert to Base Version" vc-revert