aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc-hooks.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index eb251b096ec..24ab7e6345b 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -332,9 +332,11 @@ value of this flag.")
332 (cond 332 (cond
333 ((string-match "Locally Modified" status) 'locally-modified) 333 ((string-match "Locally Modified" status) 'locally-modified)
334 ((string-match "Needs Merge" status) 'needs-merge) 334 ((string-match "Needs Merge" status) 'needs-merge)
335 ((string-match "Needs Checkout" status) 'needs-checkout) 335 ((string-match "Needs \\(Checkout\\|Patch\\)" status)
336 'needs-checkout)
336 ((string-match "Unresolved Conflict" status) 'unresolved-conflict) 337 ((string-match "Unresolved Conflict" status) 'unresolved-conflict)
337 ((string-match "Locally Added" status) 'locally-added) 338 ((string-match "Locally Added" status) 'locally-added)
339 (t 'unknown)
338 )))))))) 340 ))))))))
339 (if (get-buffer "*vc-info*") 341 (if (get-buffer "*vc-info*")
340 (kill-buffer (get-buffer "*vc-info*"))))) 342 (kill-buffer (get-buffer "*vc-info*")))))
@@ -804,7 +806,10 @@ of the buffer. With prefix argument, ask for version number."
804 (not (vc-locking-user file)) 806 (not (vc-locking-user file))
805 (eq (vc-checkout-model file) 'implicit) 807 (eq (vc-checkout-model file) 'implicit)
806 (vc-file-setprop file 'vc-locking-user (user-login-name)) 808 (vc-file-setprop file 'vc-locking-user (user-login-name))
807 (vc-mode-line file)))) 809 (progn
810 (and (eq (vc-backend file) 'CVS)
811 (vc-file-setprop file 'vc-cvs-status nil))
812 (vc-mode-line file)))))
808 813
809(defun vc-mode-line (file &optional label) 814(defun vc-mode-line (file &optional label)
810 "Set `vc-mode' to display type of version control for FILE. 815 "Set `vc-mode' to display type of version control for FILE.