aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-03-21 05:53:48 +0000
committerDan Nicolaescu2008-03-21 05:53:48 +0000
commit6a3f9bb72de2ea13801701c98fe27fbf41d6a4f4 (patch)
treeed29e9f4d13739ac4bf06465fac758b626aeb548
parent5371d722ecd94db9d5b3b21f4b91d073a38bd73b (diff)
downloademacs-6a3f9bb72de2ea13801701c98fe27fbf41d6a4f4.tar.gz
emacs-6a3f9bb72de2ea13801701c98fe27fbf41d6a4f4.zip
* vc-hg.el (vc-hg-state):
* vc-git.el (vc-git-state): * vc-cvs.el (vc-cvs-parse-status): * vc-bzr.el (vc-bzr-state): Return 'added when the file is in that state.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/vc-bzr.el2
-rw-r--r--lisp/vc-cvs.el1
-rw-r--r--lisp/vc-git.el4
-rw-r--r--lisp/vc-hg.el2
5 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 718cbf3c29d..1bc7531e84d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12008-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-hg.el (vc-hg-state):
4 * vc-git.el (vc-git-state):
5 * vc-cvs.el (vc-cvs-parse-status):
6 * vc-bzr.el (vc-bzr-state): Return 'added when the file is in that
7 state.
8
12008-03-20 Stefan Monnier <monnier@iro.umontreal.ca> 92008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 10
3 * progmodes/compile.el (compile): 11 * progmodes/compile.el (compile):
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index cbfdfaab3ba..93ffed16c48 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -223,7 +223,7 @@ If any error occurred in running `bzr status', then return nil."
223 (if (cdr result) 223 (if (cdr result)
224 (message "Warnings in `bzr' output: %s" (cdr result))) 224 (message "Warnings in `bzr' output: %s" (cdr result)))
225 (cdr (assq (car result) 225 (cdr (assq (car result)
226 '((added . edited) 226 '((added . added)
227 (kindchanged . edited) 227 (kindchanged . edited)
228 (renamed . edited) 228 (renamed . edited)
229 (modified . edited) 229 (modified . edited)
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 975a24dcd4d..cc63131945e 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -860,6 +860,7 @@ state."
860 ((string-match "Locally Modified" status) 'edited) 860 ((string-match "Locally Modified" status) 'edited)
861 ((string-match "Needs Merge" status) 'needs-merge) 861 ((string-match "Needs Merge" status) 'needs-merge)
862 ((string-match "Needs \\(Checkout\\|Patch\\)" status) 'needs-patch) 862 ((string-match "Needs \\(Checkout\\|Patch\\)" status) 'needs-patch)
863 ((string-match "Locally Added" status) 'added)
863 (t 'edited)))))))) 864 (t 'edited))))))))
864 865
865(defun vc-cvs-dir-state-heuristic (dir) 866(defun vc-cvs-dir-state-heuristic (dir)
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index c2295ddaddc..d6e9d674953 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -146,9 +146,9 @@
146 ;; FIXME: This can't set 'ignored yet 146 ;; FIXME: This can't set 'ignored yet
147 (vc-git--call nil "add" "--refresh" "--" (file-relative-name file)) 147 (vc-git--call nil "add" "--refresh" "--" (file-relative-name file))
148 (let ((diff (vc-git--run-command-string file "diff-index" "-z" "HEAD" "--"))) 148 (let ((diff (vc-git--run-command-string file "diff-index" "-z" "HEAD" "--")))
149 (if (and diff (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} [ADMU]\0[^\0]+\0" 149 (if (and diff (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMU]\\)\0[^\0]+\0"
150 diff)) 150 diff))
151 'edited 151 (if (string= (match-string 1 diff) "A") 'added 'edited)
152 'up-to-date))) 152 'up-to-date)))
153 153
154(defun vc-git--ls-files-state (state &rest args) 154(defun vc-git--ls-files-state (state &rest args)
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index c424dbaa3b6..46617fe19ac 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -173,7 +173,7 @@
173 (let ((state (aref out 0))) 173 (let ((state (aref out 0)))
174 (cond 174 (cond
175 ((eq state ?=) 'up-to-date) 175 ((eq state ?=) 'up-to-date)
176 ((eq state ?A) 'edited) 176 ((eq state ?A) 'added)
177 ((eq state ?M) 'edited) 177 ((eq state ?M) 'edited)
178 ((eq state ?I) 'ignored) 178 ((eq state ?I) 'ignored)
179 ((eq state ?R) 'unregistered) 179 ((eq state ?R) 'unregistered)