summaryrefslogtreecommitdiff
path: root/lisp/vc-hooks.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-03-21 17:53:04 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-03-21 17:53:04 +0000
commit45b24b4de643475dc82737a89bf9d1c250ce3d9e (patch)
tree8613ae3aeedd29793f98a06f9a8503513a08b83e /lisp/vc-hooks.el
parente345c46e5613f29d17a1c9e6c663c80925e33129 (diff)
downloademacs-45b24b4de643475dc82737a89bf9d1c250ce3d9e.tar.gz
* vc-hooks.el (vc-default-mode-line-string): Add case for added files.
* vc.el (vc-default-dired-state-info): Use just "modified". * vc-cvs.el (vc-cvs-state-heuristic): Turn rev 0 into `added'. (vc-cvs-mode-line-string): Make use of the better default. (vc-cvs-parse-entry): Use the new `added'. (vc-cvs-dired-state-info): Remove. * vc-svn.el (vc-svn-dired-state-info): Remove. * vc-hg.el (vc-hg-dired-state-info): Remove. * vc-git.el (vc-git-dired-state-info): Remove.
Diffstat (limited to 'lisp/vc-hooks.el')
-rw-r--r--lisp/vc-hooks.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index e167492c089..cf17f9becb7 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -856,6 +856,9 @@ This function assumes that the file is registered."
((stringp state)
(setq state-echo (concat "File locked by" state))
(concat backend ":" state ":" rev))
+ ((eq state 'added)
+ (setq state-echo "Locally added file")
+ (concat backend "@" rev))
(t
;; Not just for the 'edited state, but also a fallback
;; for all other states. Think about different symbols