aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2008-11-04 07:27:26 +0000
committerNick Roberts2008-11-04 07:27:26 +0000
commit644896e1fa8b0b9b9367b2561061f0fef12bc3f4 (patch)
treefdff9a63d843ee474d70eb6d77e48de8e4b19b2e
parent0e87e61e29ec825fb66d970360d8d3a993f0e13f (diff)
downloademacs-644896e1fa8b0b9b9367b2561061f0fef12bc3f4.tar.gz
emacs-644896e1fa8b0b9b9367b2561061f0fef12bc3f4.zip
* vc-cvs.el (vc-cvs-dir-extra-headers): Add tag name to header.
* vc-dir.el (vc-dir-headers): Order headers as in PCL-CVS.
-rw-r--r--lisp/vc-cvs.el23
1 files changed, 18 insertions, 5 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 81db5a08576..cd5c86fe7f2 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -993,7 +993,7 @@ state."
993 (insert-file-contents "CVS/Root") 993 (insert-file-contents "CVS/Root")
994 (goto-char (point-min)) 994 (goto-char (point-min))
995 (and (looking-at ":ext:") (delete-char 5)) 995 (and (looking-at ":ext:") (delete-char 5))
996 (buffer-substring (point) (1- (point-max)))) 996 (concat (buffer-substring (point) (1- (point-max))) "\n"))
997 (file-error nil))) 997 (file-error nil)))
998 (module 998 (module
999 (condition-case nil 999 (condition-case nil
@@ -1004,14 +1004,27 @@ state."
1004 (concat (buffer-substring (point-min) (point)) "\n")) 1004 (concat (buffer-substring (point-min) (point)) "\n"))
1005 (file-error nil)))) 1005 (file-error nil))))
1006 (concat 1006 (concat
1007 (cond (module
1008 (concat (propertize "Module : " 'face 'font-lock-type-face)
1009 (propertize module 'face 'font-lock-variable-name-face)))
1010 (t ""))
1011 (cond (repo 1007 (cond (repo
1012 (concat (propertize "Repository : " 'face 'font-lock-type-face) 1008 (concat (propertize "Repository : " 'face 'font-lock-type-face)
1013 (propertize repo 'face 'font-lock-variable-name-face))) 1009 (propertize repo 'face 'font-lock-variable-name-face)))
1014 (t "")) 1010 (t ""))
1011 (cond (module
1012 (concat (propertize "Module : " 'face 'font-lock-type-face)
1013 (propertize module 'face 'font-lock-variable-name-face)))
1014 (t ""))
1015 (if (file-readable-p "CVS/Tag")
1016 (let ((tag (vc-cvs-file-to-string "CVS/Tag")))
1017 (cond
1018 ((string-match "\\`T" tag)
1019 (concat (propertize "Tag : " 'face 'font-lock-type-face)
1020 (propertize (substring tag 1)
1021 'face 'font-lock-variable-name-face)))
1022 ((string-match "\\`D" tag)
1023 (concat (propertize "Date : " 'face 'font-lock-type-face)
1024 (propertize (substring tag 1)
1025 'face 'font-lock-variable-name-face)))
1026 (t ""))))
1027
1015 ;; In CVS, branch is a per-file property, not a per-directory property. 1028 ;; In CVS, branch is a per-file property, not a per-directory property.
1016 ;; We can't really do this here without making dangerous assumptions. 1029 ;; We can't really do this here without making dangerous assumptions.
1017 ;;(propertize "Branch: " 'face 'font-lock-type-face) 1030 ;;(propertize "Branch: " 'face 'font-lock-type-face)