Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8228a275
Commit
8228a275
authored
Feb 05, 2010
by
Mark A. Hershberger
Browse files
add primative implementation of vc-svn-revision-table
parent
7bb8ed67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/vc-svn.el
lisp/vc-svn.el
+19
-0
No files found.
lisp/ChangeLog
View file @
8228a275
2010-02-05 Mark A. Hershberger <mah@everybody.org>
* vc-svn.el (vc-svn-revision-table): New function.
2010-02-05 Michael Albinus <michael.albinus@gmx.de>
* net/ange-ftp.el (ange-ftp-insert-directory):
...
...
lisp/vc-svn.el
View file @
8228a275
...
...
@@ -31,6 +31,10 @@
(
eval-when-compile
(
require
'vc
))
;; Clear up the cache to force vc-call to check again and discover
;; new functions when we reload this file.
(
put
'SVN
'vc-functions
nil
)
;;;
;;; Customization options
;;;
...
...
@@ -722,6 +726,21 @@ information about FILENAME and return its status."
(beginning-of-line)
(if (looking-at vc-svn-annotate-re) (match-string 1))))
(defun vc-svn-revision-table (files)
(let ((vc-svn-revisions '()))
(with-current-buffer "
*vc*
"
(vc-svn-command nil 0 files "
log
" "
-q
")
(goto-char (point-min))
(forward-line)
(let ((start (point-min))
(loglines (buffer-substring-no-properties (point-min)
(point-max))))
(while (string-match "
^r\\
(
[0-9]+\\
)
"
loglines
)
(
push
(
match-string
1
loglines
)
vc-svn-revisions
)
(
setq
start
(
+
start
(
match-end
0
)))
(
setq
loglines
(
buffer-substring-no-properties
start
(
point-max
))))
)
vc-svn-revisions
)))
(
provide
'vc-svn
)
;; arch-tag: 02f10c68-2b4d-453a-90fc-1eee6cfb268d
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment