comparison lisp/vc-mcvs.el @ 50808:5a0d0a9219f3

(vc-mcvs-mode-line-string): Fix thinko. (vc-mcvs-rename-file): New function.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 04 May 2003 18:38:31 +0000
parents 02455099d549
children 6b9cefee3eee
comparison
equal deleted inserted replaced
50807:0158fd7739f3 50808:5a0d0a9219f3
44 ;; - C-x v v to commit a file 44 ;; - C-x v v to commit a file
45 ;; - C-x v = 45 ;; - C-x v =
46 ;; - C-x v l 46 ;; - C-x v l
47 ;; - C-x v i 47 ;; - C-x v i
48 ;; - C-x v g 48 ;; - C-x v g
49 ;; - M-x vc-rename-file RET
49 50
50 ;;; Bugs: 51 ;;; Bugs:
51 52
52 ;; - VC-dired doesn't work. 53 ;; - VC-dired doesn't work.
53 54
222 223
223 (defun vc-mcvs-workfile-version (file) (vc-mcvs-cvs workfile-version file)) 224 (defun vc-mcvs-workfile-version (file) (vc-mcvs-cvs workfile-version file))
224 225
225 (defalias 'vc-mcvs-checkout-model 'vc-cvs-checkout-model) 226 (defalias 'vc-mcvs-checkout-model 'vc-cvs-checkout-model)
226 227
227 (defun vc-mcvs-mode-line-string (file) (vc-mcvs-cvs mode-line-string file)) 228 (defun vc-mcvs-mode-line-string (file)
229 (let ((s (vc-mcvs-cvs mode-line-string file)))
230 (if s (concat "M" s))))
228 231
229 ;;; 232 ;;;
230 ;;; State-changing functions 233 ;;; State-changing functions
231 ;;; 234 ;;;
232 235
385 (if (or (not rev) (string= rev "")) 388 (if (or (not rev) (string= rev ""))
386 "-A" 389 "-A"
387 (concat "-r" rev)) 390 (concat "-r" rev))
388 switches))) 391 switches)))
389 392
393 (defun vc-mcvs-rename-file (old new)
394 (vc-mcvs-command nil 0 new "move" (file-relative-name old)))
395
390 (defun vc-mcvs-revert (file &optional contents-done) 396 (defun vc-mcvs-revert (file &optional contents-done)
391 "Revert FILE to the version it was based on." 397 "Revert FILE to the version it was based on."
392 (vc-default-revert file contents-done) 398 (vc-default-revert file contents-done)
393 (unless (eq (vc-checkout-model file) 'implicit) 399 (unless (eq (vc-checkout-model file) 'implicit)
394 (if vc-mcvs-use-edit 400 (if vc-mcvs-use-edit