aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2008-05-16 18:15:26 +0000
committerEric S. Raymond2008-05-16 18:15:26 +0000
commit2ec0d864c1e39c8603a330bbca1684c6dc5d5a90 (patch)
tree237ca930636c4256c6c6cc3608d29bd698193e80
parent1cab27d2547b15ad0f1054e09bc25a5b2e991369 (diff)
downloademacs-2ec0d864c1e39c8603a330bbca1684c6dc5d5a90.tar.gz
emacs-2ec0d864c1e39c8603a330bbca1684c6dc5d5a90.zip
Add extra-headers method for SVN.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/vc-svn.el17
2 files changed, 19 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5495a635edc..151e3c2a532 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -5,6 +5,8 @@
5 stale since 1995 and may now be actively misleading. 5 stale since 1995 and may now be actively misleading.
6 * vc-cvs.el (vc-cvs-status-extra-headers): Extract and display the 6 * vc-cvs.el (vc-cvs-status-extra-headers): Extract and display the
7 CVS repository. 7 CVS repository.
8 * vc-svn.el (vc-svn-status-extra-headers): Extract and display the
9 SVN repository.
8 10
92008-05-16 Juanma Barranquero <lekktu@gmail.com> 112008-05-16 Juanma Barranquero <lekktu@gmail.com>
10 12
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el
index 0b0828ac23d..8a7c2b291f7 100644
--- a/lisp/vc-svn.el
+++ b/lisp/vc-svn.el
@@ -173,6 +173,23 @@ RESULT is a list of conses (FILE . STATE) for directory DIR."
173 (vc-exec-after 173 (vc-exec-after
174 `(vc-svn-after-dir-status (quote ,callback)))) 174 `(vc-svn-after-dir-status (quote ,callback))))
175 175
176(defun vc-svn-status-extra-headers (dir)
177 "Generate extra status headers for a Subversion working copy."
178 (vc-svn-command "*vc*" 0 nil "info")
179 (let ((repo
180 (save-excursion
181 (and (progn
182 (set-buffer "*vc*")
183 (goto-char (point-min))
184 (re-search-forward "Repository Root: *\\(.*\\)" nil t))
185 (match-string 1)))))
186 (concat
187 (cond (repo
188 (concat
189 (propertize "Repository : " 'face 'font-lock-type-face)
190 (propertize repo 'face 'font-lock-variable-name-face)))
191 (t "")))))
192
176(defun vc-svn-working-revision (file) 193(defun vc-svn-working-revision (file)
177 "SVN-specific version of `vc-working-revision'." 194 "SVN-specific version of `vc-working-revision'."
178 ;; There is no need to consult RCS headers under SVN, because we 195 ;; There is no need to consult RCS headers under SVN, because we