aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2007-12-28 16:24:31 +0000
committerEric S. Raymond2007-12-28 16:24:31 +0000
commit0f67cc71b4047fd71b873a4e73644a097722869c (patch)
treec041d8637e21d51ae029fb69c4edb02758a712a3
parent5b7ec6a8137672e5c42527a604897d16ad78cdb6 (diff)
downloademacs-0f67cc71b4047fd71b873a4e73644a097722869c.tar.gz
emacs-0f67cc71b4047fd71b873a4e73644a097722869c.zip
* vc-cvs.el, vc-svn.el: Simplify backend dired-state-info
functions so they don't do work that the default one can do instead
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/vc-cvs.el5
-rw-r--r--lisp/vc-svn.el6
-rw-r--r--lisp/vc.el1
4 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bfdba9ab2b8..eefada19f60 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -16,6 +16,9 @@
16 keeping undo lists on the buffers holding status output, which 16 keeping undo lists on the buffers holding status output, which
17 can get extremely large. 17 can get extremely large.
18 18
19 * vc-cvs.el, vc-svn.el: Simplify backend dired-state-info
20 functions so they don't do work that the default one can do instead
21
192007-12-28 Nick Roberts <nickrob@snap.net.nz> 222007-12-28 Nick Roberts <nickrob@snap.net.nz>
20 23
21 * thumbs.el (thumbs-call-convert): Use call-process directly 24 * thumbs.el (thumbs-call-convert): Use call-process directly
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index f5c86d4ead8..3728d725478 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -285,9 +285,8 @@ committed and support display of sticky tags."
285 (cond ((eq cvs-state 'edited) 285 (cond ((eq cvs-state 'edited)
286 (if (equal (vc-working-revision file) "0") 286 (if (equal (vc-working-revision file) "0")
287 "(added)" "(modified)")) 287 "(added)" "(modified)"))
288 ((eq cvs-state 'needs-patch) "(patch)") 288 (t
289 ((eq cvs-state 'needs-merge) "(merge)")))) 289 (vc-default-dired-state-info 'CVS file)))))
290
291 290
292;;; 291;;;
293;;; State-changing functions 292;;; State-changing functions
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 533a93c380f..7ce1634d45c 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -179,8 +179,10 @@ If you want to force an empty list of arguments, use t."
179 (cond ((eq svn-state 'edited) 179 (cond ((eq svn-state 'edited)
180 (if (equal (vc-working-revision file) "0") 180 (if (equal (vc-working-revision file) "0")
181 "(added)" "(modified)")) 181 "(added)" "(modified)"))
182 ((eq svn-state 'needs-patch) "(patch)") 182 (t
183 ((eq svn-state 'needs-merge) "(merge)")))) 183 ;; fall back to the default VC representation
184 (vc-default-dired-state-info 'SVN file)))))
185
184 186
185(defun vc-svn-previous-revision (file rev) 187(defun vc-svn-previous-revision (file rev)
186 (let ((newrev (1- (string-to-number rev)))) 188 (let ((newrev (1- (string-to-number rev))))
diff --git a/lisp/vc.el b/lisp/vc.el
index e8a481be3d3..373d0f50124 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -3075,6 +3075,7 @@ to provide the `find-revision' operation instead."
3075 ((eq state 'edited) (concat "(" (vc-user-login-name file) ")")) 3075 ((eq state 'edited) (concat "(" (vc-user-login-name file) ")"))
3076 ((eq state 'needs-merge) "(merge)") 3076 ((eq state 'needs-merge) "(merge)")
3077 ((eq state 'needs-patch) "(patch)") 3077 ((eq state 'needs-patch) "(patch)")
3078 ((eq state 'added) "(added)")
3078 ((eq state 'unlocked-changes) "(stale)"))) 3079 ((eq state 'unlocked-changes) "(stale)")))
3079 (buffer 3080 (buffer
3080 (get-file-buffer file)) 3081 (get-file-buffer file))