1 ;;; vc-svn.el --- non-resident support for Subversion version-control
3 ;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 ;; Author: FSF (see vc.el for full credits)
6 ;; Maintainer: Stefan Monnier <monnier@gnu.org>
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software: you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation, either version 3 of the License, or
13 ;; (at your option) any later version.
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25 ;; Sync'd with Subversion's vc-svn.el as of revision 5801. but this version
26 ;; has been extensively modified since to handle filesets.
34 ;;; Customization options
37 (defcustom vc-svn-global-switches nil
38 "*Global switches to pass to any SVN command."
39 :type
'(choice (const :tag
"None" nil
)
40 (string :tag
"Argument String")
41 (repeat :tag
"Argument List"
47 (defcustom vc-svn-register-switches nil
48 "*Extra switches for registering a file into SVN.
49 A string or list of strings passed to the checkin program by
51 :type
'(choice (const :tag
"None" nil
)
52 (string :tag
"Argument String")
53 (repeat :tag
"Argument List"
59 (defcustom vc-svn-diff-switches
60 t
;`svn' doesn't support common args like -c or -b.
61 "String or list of strings specifying extra switches for svn diff under VC.
62 If nil, use the value of `vc-diff-switches'.
63 If you want to force an empty list of arguments, use t."
64 :type
'(choice (const :tag
"Unspecified" nil
)
66 (string :tag
"Argument String")
67 (repeat :tag
"Argument List"
73 (defcustom vc-svn-header
(or (cdr (assoc 'SVN vc-header-alist
)) '("\$Id\$"))
74 "*Header keywords to be inserted by `vc-insert-headers'."
76 :type
'(repeat string
)
79 ;; We want to autoload it for use by the autoloaded version of
80 ;; vc-svn-registered, but we want the value to be compiled at startup, not
83 (defconst vc-svn-admin-directory
84 (cond ((and (memq system-type
'(cygwin windows-nt ms-dos
))
85 (getenv "SVN_ASP_DOT_NET_HACK"))
88 "The name of the \".svn\" subdirectory or its equivalent.")
90 ;;; Properties of the backend
92 (defun vc-svn-revision-granularity () 'repository
)
93 (defun vc-svn-checkout-model (files) 'implicit
)
96 ;;; State-querying functions
99 ;;; vc-svn-admin-directory is generally not defined when the
100 ;;; autoloaded function is called.
102 ;;;###autoload (defun vc-svn-registered (f)
103 ;;;###autoload (let ((admin-dir (cond ((and (eq system-type 'windows-nt)
104 ;;;###autoload (getenv "SVN_ASP_DOT_NET_HACK"))
105 ;;;###autoload "_svn")
106 ;;;###autoload (t ".svn"))))
107 ;;;###autoload (when (file-readable-p (expand-file-name
108 ;;;###autoload (concat admin-dir "/entries")
109 ;;;###autoload (file-name-directory f)))
110 ;;;###autoload (load "vc-svn")
111 ;;;###autoload (vc-svn-registered f))))
114 (add-to-list 'completion-ignored-extensions
".svn/")
116 (defun vc-svn-registered (file)
117 "Check if FILE is SVN registered."
118 (when (file-readable-p (expand-file-name (concat vc-svn-admin-directory
120 (file-name-directory file
)))
122 (cd (file-name-directory file
))
125 ;; Ignore all errors.
126 (vc-svn-command t t file
"status" "-v")
127 ;; Some problem happened. E.g. We can't find an `svn'
128 ;; executable. We used to only catch `file-error' but when
129 ;; the process is run on a remote host via Tramp, the error
130 ;; is only reported via the exit status which is turned into
131 ;; an `error' by vc-do-command.
134 (let ((parsed (vc-svn-parse-status file
)))
135 (and parsed
(not (memq parsed
'(ignored unregistered
))))))))))
137 (defun vc-svn-state (file &optional localp
)
138 "SVN-specific version of `vc-state'."
139 (setq localp
(or localp
(vc-stay-local-p file
)))
141 (cd (file-name-directory file
))
142 (vc-svn-command t
0 file
"status" (if localp
"-v" "-u"))
143 (vc-svn-parse-status file
)))
145 (defun vc-svn-state-heuristic (file)
146 "SVN-specific state heuristic."
147 (vc-svn-state file
'local
))
149 (defun vc-svn-after-dir-status (callback)
150 (let ((state-map '((?A . added
)
157 ;; This is what vc-svn-parse-status does.
160 (goto-char (point-min))
161 (while (re-search-forward "^\\(.\\)..... \\(.*\\)$" nil t
)
162 (let ((state (cdr (assq (aref (match-string 1) 0) state-map
)))
163 (filename (match-string 2)))
165 (setq result
(cons (list filename state
) result
)))))
166 (funcall callback result
)))
168 (defun vc-svn-dir-status (dir callback
)
169 "Run 'svn status' for DIR and update BUFFER via CALLBACK.
170 CALLBACK is called as (CALLBACK RESULT BUFFER), where
171 RESULT is a list of conses (FILE . STATE) for directory DIR."
172 (vc-svn-command (current-buffer) 'async nil
"status")
174 `(vc-svn-after-dir-status (quote ,callback
))))
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")
183 (goto-char (point-min))
184 (re-search-forward "Repository Root: *\\(.*\\)" nil t
))
189 (propertize "Repository : " 'face
'font-lock-type-face
)
190 (propertize repo
'face
'font-lock-variable-name-face
)))
193 (defun vc-svn-working-revision (file)
194 "SVN-specific version of `vc-working-revision'."
195 ;; There is no need to consult RCS headers under SVN, because we
196 ;; get the workfile version for free when we recognize that a file
197 ;; is registered in SVN.
198 (vc-svn-registered file
)
199 (vc-file-getprop file
'vc-working-revision
))
201 ;; vc-svn-mode-line-string doesn't exist because the default implementation
204 (defun vc-svn-previous-revision (file rev
)
205 (let ((newrev (1- (string-to-number rev
))))
207 (number-to-string newrev
))))
209 (defun vc-svn-next-revision (file rev
)
210 (let ((newrev (1+ (string-to-number rev
))))
211 ;; The "working revision" is an uneasy conceptual fit under Subversion;
212 ;; we use it as the upper bound until a better idea comes along. If the
213 ;; workfile version W coincides with the tree's latest revision R, then
214 ;; this check prevents a "no such revision: R+1" error. Otherwise, it
215 ;; inhibits showing of W+1 through R, which could be considered anywhere
216 ;; from gracious to impolite.
217 (unless (< (string-to-number (vc-file-getprop file
'vc-working-revision
))
219 (number-to-string newrev
))))
223 ;;; State-changing functions
226 (defun vc-svn-create-repo ()
227 "Create a new SVN repository."
228 (vc-do-command "*vc*" 0 "svnadmin" '("create" "SVN"))
229 (vc-do-command "*vc*" 0 "svn" '(".")
230 "checkout" (concat "file://" default-directory
"SVN")))
232 (defun vc-svn-register (files &optional rev comment
)
233 "Register FILES into the SVN version-control system.
234 The COMMENT argument is ignored This does an add but not a commit.
236 `vc-register-switches' and `vc-svn-register-switches' are passed to
237 the SVN command (in that order)."
238 (apply 'vc-svn-command nil
0 files
"add" (vc-switches 'SVN
'register
)))
240 (defun vc-svn-responsible-p (file)
241 "Return non-nil if SVN thinks it is responsible for FILE."
242 (file-directory-p (expand-file-name vc-svn-admin-directory
243 (if (file-directory-p file
)
245 (file-name-directory file
)))))
247 (defalias 'vc-svn-could-register
'vc-svn-responsible-p
248 "Return non-nil if FILE could be registered in SVN.
249 This is only possible if SVN is responsible for FILE's directory.")
251 (defun vc-svn-checkin (files rev comment
)
252 "SVN-specific version of `vc-backend-checkin'."
253 (if rev
(error "Committing to a specific revision is unsupported in SVN"))
255 'vc-svn-command nil
1 files
"ci"
256 (nconc (list "-m" comment
) (vc-switches 'SVN
'checkin
)))))
258 (goto-char (point-min))
259 (unless (equal status
0)
260 ;; Check checkin problem.
262 ((search-forward "Transaction is out of date" nil t
)
263 (mapc (lambda (file) (vc-file-setprop file
'vc-state
'needs-merge
))
265 (error (substitute-command-keys
266 (concat "Up-to-date check failed: "
267 "type \\[vc-next-action] to merge in changes"))))
269 (pop-to-buffer (current-buffer))
270 (goto-char (point-min))
271 (shrink-window-if-larger-than-buffer)
272 (error "Check-in failed"))))
273 ;; Update file properties
275 ;; file 'vc-working-revision
276 ;; (vc-parse-buffer "^\\(new\\|initial\\) revision: \\([0-9.]+\\)" 2))
279 (defun vc-svn-find-revision (file rev buffer
)
280 "SVN-specific retrieval of a specified version into a buffer."
281 (apply 'vc-svn-command
284 (and rev
(not (string= rev
""))
286 (vc-switches 'SVN
'checkout
)))
288 (defun vc-svn-checkout (file &optional editable rev
)
289 (message "Checking out %s..." file
)
290 (with-current-buffer (or (get-file-buffer file
) (current-buffer))
291 (vc-svn-update file editable rev
(vc-switches 'SVN
'checkout
)))
293 (message "Checking out %s...done" file
))
295 (defun vc-svn-update (file editable rev switches
)
296 (if (and (file-exists-p file
) (not rev
))
297 ;; If no revision was specified, there's nothing to do.
299 ;; Check out a particular version (or recreate the file).
300 (vc-file-setprop file
'vc-working-revision nil
)
301 (apply 'vc-svn-command nil
0 file
304 ((null rev
) "-rBASE")
305 ((or (eq rev t
) (equal rev
"")) nil
)
306 (t (concat "-r" rev
)))
309 (defun vc-svn-delete-file (file)
310 (vc-svn-command nil
0 file
"remove"))
312 (defun vc-svn-rename-file (old new
)
313 (vc-svn-command nil
0 new
"move" (file-relative-name old
)))
315 (defun vc-svn-revert (file &optional contents-done
)
316 "Revert FILE to the version it was based on."
317 (unless contents-done
318 (vc-svn-command nil
0 file
"revert")))
320 (defun vc-svn-merge (file first-version
&optional second-version
)
321 "Merge changes into current working copy of FILE.
322 The changes are between FIRST-VERSION and SECOND-VERSION."
323 (vc-svn-command nil
0 file
325 "-r" (if second-version
326 (concat first-version
":" second-version
)
328 (vc-file-setprop file
'vc-state
'edited
)
329 (with-current-buffer (get-buffer "*vc*")
330 (goto-char (point-min))
331 (if (looking-at "C ")
333 0))) ; signal success
335 (defun vc-svn-merge-news (file)
336 "Merge in any new changes made to FILE."
337 (message "Merging changes into %s..." file
)
338 ;; (vc-file-setprop file 'vc-working-revision nil)
339 (vc-file-setprop file
'vc-checkout-time
0)
340 (vc-svn-command nil
0 file
"update")
341 ;; Analyze the merge result reported by SVN, and set
342 ;; file properties accordingly.
343 (with-current-buffer (get-buffer "*vc*")
344 (goto-char (point-min))
345 ;; get new working revision
346 (if (re-search-forward
347 "^\\(Updated to\\|At\\) revision \\([0-9]+\\)" nil t
)
348 (vc-file-setprop file
'vc-working-revision
(match-string 2))
349 (vc-file-setprop file
'vc-working-revision nil
))
351 (goto-char (point-min))
353 (if (looking-at "At revision")
354 0 ;; there were no news; indicate success
355 (if (re-search-forward
356 ;; Newer SVN clients have 3 columns of chars (one for the
357 ;; file's contents, then second for its properties, and the
358 ;; third for lock-grabbing info), before the 2 spaces.
359 ;; We also used to match the filename in column 0 without any
360 ;; meta-info before it, but I believe this can never happen.
361 (concat "^\\(\\([ACGDU]\\)\\(.[B ]\\)? \\)"
362 (regexp-quote (file-name-nondirectory file
)))
365 ;; Merge successful, we are in sync with repository now
366 ((string= (match-string 2) "U")
367 (vc-file-setprop file
'vc-state
'up-to-date
)
368 (vc-file-setprop file
'vc-checkout-time
369 (nth 5 (file-attributes file
)))
370 0);; indicate success to the caller
371 ;; Merge successful, but our own changes are still in the file
372 ((string= (match-string 2) "G")
373 (vc-file-setprop file
'vc-state
'edited
)
374 0);; indicate success to the caller
375 ;; Conflicts detected!
377 (vc-file-setprop file
'vc-state
'edited
)
378 1);; signal the error to the caller
380 (pop-to-buffer "*vc*")
381 (error "Couldn't analyze svn update result")))
382 (message "Merging changes into %s...done" file
))))
384 (defun vc-svn-modify-change-comment (files rev comment
)
385 "Modify the change comments for a specified REV.
386 You must have ssh access to the repository host, and the directory Emacs
387 uses locally for temp files must also be writeable by you on that host.
388 This is only supported if the repository access method is either file://
390 (let (tempfile host remotefile directory fileurl-p
)
392 (vc-do-command (current-buffer) 0 "svn" nil
"info")
393 (goto-char (point-min))
394 (unless (re-search-forward "Repository Root: \\(file://\\(/.*\\)\\)\\|\\(svn\\+ssh://\\([^/]+\\)\\(/.*\\)\\)" nil t
)
395 (error "Repository information is unavailable"))
399 (setq directory
(match-string 2)))
400 (setq host
(match-string 4))
401 (setq directory
(match-string 5))
402 (setq remotefile
(concat host
":" tempfile
))))
403 (with-temp-file (setq tempfile
(make-temp-file user-mail-address
))
406 ;; Repository Root is a local file.
408 (unless (vc-do-command
409 "*vc*" 0 "svnadmin" nil
410 "setlog" "--bypass-hooks" directory
411 "-r" rev
(format "%s" tempfile
))
412 (error "Log edit failed"))
413 (delete-file tempfile
))
415 ;; Remote repository, using svn+ssh.
416 (unless (vc-do-command "*vc*" 0 "scp" nil
"-q" tempfile remotefile
)
417 (error "Copy of comment to %s failed" remotefile
))
418 (unless (vc-do-command
419 "*vc*" 0 "ssh" nil
"-q" host
420 (format "svnadmin setlog --bypass-hooks %s -r %s %s; rm %s"
421 directory rev tempfile tempfile
))
422 (error "Log edit failed")))))
425 ;;; History functions
428 (defvar log-view-per-file-logs
)
430 (define-derived-mode vc-svn-log-view-mode log-view-mode
"SVN-Log-View"
432 (set (make-local-variable 'log-view-per-file-logs
) nil
))
434 (defun vc-svn-print-log (files &optional buffer
)
435 "Get change log(s) associated with FILES."
437 (vc-setup-buffer buffer
)
438 (let ((inhibit-read-only t
))
439 (goto-char (point-min))
442 (insert "Working file: " file
"\n")
446 ;; (if (and (= (length files) 1) (vc-stay-local-p file)) 'async 0)
449 ;; By default Subversion only shows the log up to the
450 ;; working revision, whereas we also want the log of the
451 ;; subsequent commits. At least that's what the
452 ;; vc-cvs.el code does.
454 ;; Dump log for the entire directory.
455 (vc-svn-command buffer
0 nil
"log" "-rHEAD:0")))))
457 (defun vc-svn-diff (files &optional oldvers newvers buffer
)
458 "Get a difference report using SVN between two revisions of fileset FILES."
462 (or (equal oldvers
(vc-working-revision f
))
465 ;; Use nil rather than the current revision because svn handles
466 ;; it better (i.e. locally). Note that if _any_ of the files
467 ;; has a different revision, we fetch the lot, which is
468 ;; obviously sub-optimal.
471 (if vc-svn-diff-switches
472 (vc-switches 'SVN
'diff
)
473 (list "-x" (mapconcat 'identity
(vc-switches nil
'diff
) " "))))
474 (async (and (not vc-disable-async-diff
)
475 (vc-stay-local-p files
)
476 (or oldvers newvers
)))) ; Svn diffs those locally.
477 (apply 'vc-svn-command buffer
483 (list "-r" (if newvers
(concat oldvers
":" newvers
)
485 (if async
1 ; async diff => pessimistic assumption
486 ;; For some reason `svn diff' does not return a useful
487 ;; status w.r.t whether the diff was empty or not.
488 (buffer-size (get-buffer buffer
)))))
494 (defun vc-svn-create-tag (dir name branchp
)
495 "Assign to DIR's current revision a given NAME.
496 If BRANCHP is non-nil, the name is created as a branch (and the current
497 workspace is immediately moved to that new branch).
498 NAME is assumed to be a URL."
499 (vc-svn-command nil
0 dir
"copy" name
)
500 (when branchp
(vc-svn-retrieve-tag dir name nil
)))
502 (defun vc-svn-retrieve-tag (dir name update
)
503 "Retrieve a tag at and below DIR.
504 NAME is the name of the tag; if it is empty, do a `svn update'.
505 If UPDATE is non-nil, then update (resynch) any affected buffers.
506 NAME is assumed to be a URL."
507 (vc-svn-command nil
0 dir
"switch" name
)
508 ;; FIXME: parse the output and obey `update'.
515 ;; Subversion makes backups for us, so don't bother.
516 ;; (defalias 'vc-svn-make-version-backups-p 'vc-stay-local-p
517 ;; "Return non-nil if version backups should be made for FILE.")
519 (defun vc-svn-check-headers ()
520 "Check if the current file has any headers in it."
522 (goto-char (point-min))
523 (re-search-forward "\\$[A-Za-z\300-\326\330-\366\370-\377]+\
524 \\(: [\t -#%-\176\240-\377]*\\)?\\$" nil t
)))
528 ;;; Internal functions
531 (defcustom vc-svn-program
"svn"
532 "Name of the SVN executable."
536 (defun vc-svn-root (dir)
537 (vc-find-root dir vc-svn-admin-directory t
))
539 (defun vc-svn-command (buffer okstatus file-or-list
&rest flags
)
540 "A wrapper around `vc-do-command' for use in vc-svn.el.
541 The difference to vc-do-command is that this function always invokes `svn',
542 and that it passes `vc-svn-global-switches' to it before FLAGS."
543 (apply 'vc-do-command
(or buffer
"*vc*") okstatus vc-svn-program file-or-list
544 (if (stringp vc-svn-global-switches
)
545 (cons vc-svn-global-switches flags
)
546 (append vc-svn-global-switches
549 (defun vc-svn-repository-hostname (dirname)
551 (let ((coding-system-for-read
552 (or file-name-coding-system
553 default-file-name-coding-system
)))
554 (vc-insert-file (expand-file-name (concat vc-svn-admin-directory
557 (goto-char (point-min))
558 (when (re-search-forward
559 ;; Old `svn' used name="svn:this_dir", newer use just name="".
560 (concat "name=\"\\(?:svn:this_dir\\)?\"[\n\t ]*"
561 "\\(?:[-a-z]+=\"[^\"]*\"[\n\t ]*\\)*?"
562 "url=\"\\(?1:[^\"]+\\)\""
563 ;; Yet newer ones don't use XML any more.
564 "\\|^\ndir\n[0-9]+\n\\(?1:.*\\)") nil t
)
565 ;; This is not a hostname but a URL. This may actually be considered
566 ;; as a feature since it allows vc-svn-stay-local to specify different
567 ;; behavior for different modules on the same server.
570 (defun vc-svn-resolve-when-done ()
571 "Call \"svn resolved\" if the conflict markers have been removed."
573 (goto-char (point-min))
574 (unless (re-search-forward "^<<<<<<< " nil t
)
575 (vc-svn-command nil
0 buffer-file-name
"resolved")
576 ;; Remove the hook so that it is not called multiple times.
577 (remove-hook 'after-save-hook
'vc-svn-resolve-when-done t
))))
579 ;; Inspired by vc-arch-find-file-hook.
580 (defun vc-svn-find-file-hook ()
581 (when (eq ?C
(vc-file-getprop buffer-file-name
'vc-svn-status
))
582 ;; If the file is marked as "conflicted", then we should try and call
583 ;; "svn resolved" when applicable.
585 (goto-char (point-min))
586 (re-search-forward "^<<<<<<< " nil t
))
587 ;; There are conflict markers.
589 (smerge-start-session)
590 (add-hook 'after-save-hook
'vc-svn-resolve-when-done nil t
))
591 ;; There are no conflict markers. This is problematic: maybe it means
592 ;; the conflict has been resolved and we should immediately call "svn
593 ;; resolved", or it means that the file's type does not allow Svn to
594 ;; use conflict markers in which case we don't really know what to do.
595 ;; So let's just punt for now.
597 (message "There are unresolved conflicts in this file")))
599 (defun vc-svn-parse-status (&optional filename
)
600 "Parse output of \"svn status\" command in the current buffer.
601 Set file properties accordingly. Unless FILENAME is non-nil, parse only
602 information about FILENAME and return its status."
604 (goto-char (point-min))
605 (while (re-search-forward
606 ;; Ignore the files with status X.
607 "^\\(\\?\\|[ ACDGIMR!~][ MC][ L][ +][ S]..\\([ *]\\) +\\([-0-9]+\\) +\\([0-9?]+\\) +\\([^ ]+\\)\\) +" nil t
)
608 ;; If the username contains spaces, the output format is ambiguous,
609 ;; so don't trust the output's filename unless we have to.
610 (setq file
(or filename
612 (buffer-substring (point) (line-end-position)))))
613 (setq status
(char-after (line-beginning-position)))
615 (vc-file-setprop file
'vc-state
'unregistered
)
616 ;; Use the last-modified revision, so that searching in vc-print-log
618 (vc-file-setprop file
'vc-working-revision
(match-string 3))
619 ;; Remember Svn's own status.
620 (vc-file-setprop file
'vc-svn-status status
)
625 (if (eq (char-after (match-beginning 1)) ?
*)
627 (vc-file-setprop file
'vc-checkout-time
628 (nth 5 (file-attributes file
)))
631 ;; If the file was actually copied, (match-string 2) is "-".
632 (vc-file-setprop file
'vc-working-revision
"0")
633 (vc-file-setprop file
'vc-checkout-time
0)
636 (vc-file-setprop file
'vc-state
'conflict
))
638 (if (eq (char-after (match-beginning 1)) ?
*)
642 (vc-file-setprop file
'vc-state
'ignored
))
644 (vc-file-setprop file
'vc-state
'removed
))
646 (if filename
(vc-file-getprop filename
'vc-state
))))
648 (defun vc-svn-valid-symbolic-tag-name-p (tag)
649 "Return non-nil if TAG is a valid symbolic tag name."
650 ;; According to the SVN manual, a valid symbolic tag must start with
651 ;; an uppercase or lowercase letter and can contain uppercase and
652 ;; lowercase letters, digits, `-', and `_'.
653 (and (string-match "^[a-zA-Z]" tag
)
654 (not (string-match "[^a-z0-9A-Z-_]" tag
))))
656 (defun vc-svn-valid-revision-number-p (tag)
657 "Return non-nil if TAG is a valid revision number."
658 (and (string-match "^[0-9]" tag
)
659 (not (string-match "[^0-9]" tag
))))
661 ;; Support for `svn annotate'
663 (defun vc-svn-annotate-command (file buf
&optional rev
)
664 (vc-svn-command buf
0 file
"annotate" (if rev
(concat "-r" rev
))))
666 (defun vc-svn-annotate-time-of-rev (rev)
667 ;; Arbitrarily assume 10 commmits per day.
668 (/ (string-to-number rev
) 10.0))
670 (defvar vc-annotate-parent-rev
)
672 (defun vc-svn-annotate-current-time ()
673 (vc-svn-annotate-time-of-rev vc-annotate-parent-rev
))
675 (defconst vc-svn-annotate-re
"[ \t]*\\([0-9]+\\)[ \t]+[^\t ]+ ")
677 (defun vc-svn-annotate-time ()
678 (when (looking-at vc-svn-annotate-re
)
679 (goto-char (match-end 0))
680 (vc-svn-annotate-time-of-rev (match-string 1))))
682 (defun vc-svn-annotate-extract-revision-at-line ()
685 (if (looking-at vc-svn-annotate-re
) (match-string 1))))
689 ;; arch-tag: 02f10c68-2b4d-453a-90fc-1eee6cfb268d
690 ;;; vc-svn.el ends here