(vc-cvs-parse-entry): Set the vc-backend property.

This commit is contained in:
Dan Nicolaescu 2007-12-31 20:43:49 +00:00
parent 55adbcc236
commit 8c58d37d56
2 changed files with 4 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2007-12-31 Dan Nicolaescu <dann@ics.uci.edu>
* vc-cvs.el (vc-cvs-parse-entry): Set the vc-backend property.
* vc.el: State that dir-state is required to set the vc-state and
vc-backend properties.

View file

@ -947,6 +947,7 @@ is non-nil."
(cond
;; entry for a "locally added" file (not yet committed)
((looking-at "/[^/]+/0/")
(vc-file-setprop file 'vc-backend 'CVS)
(vc-file-setprop file 'vc-checkout-time 0)
(vc-file-setprop file 'vc-working-revision "0")
(if set-state (vc-file-setprop file 'vc-state 'edited)))
@ -962,6 +963,7 @@ is non-nil."
;; sticky tag
"\\(.\\|\\)" ;Sticky tag type (date or tag name, could be empty)
"\\(.*\\)")) ;Sticky tag
(vc-file-setprop file 'vc-backend 'CVS)
(vc-file-setprop file 'vc-working-revision (match-string 1))
(vc-file-setprop file 'vc-cvs-sticky-tag
(vc-cvs-parse-sticky-tag (match-string 4)