Function: vc-hg-file-name-changes
vc-hg-file-name-changes is a byte-compiled function defined in
vc-hg.el.gz.
Signature
(vc-hg-file-name-changes REV)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg-file-name-changes (rev)
(unless (member "--follow" vc-hg-log-switches)
(with-temp-buffer
(let ((root (vc-hg-root default-directory)))
(vc-hg-command (current-buffer) t nil
"log" "-g" "-p" "-r" rev)
(let (res)
(goto-char (point-min))
(while (re-search-forward "^diff --git a/\\([^ \n]+\\) b/\\([^ \n]+\\)" nil t)
(when (not (equal (match-string 1) (match-string 2)))
(push (cons
(expand-file-name (match-string 1) root)
(expand-file-name (match-string 2) root))
res)))
(nreverse res))))))