Function: vc-hg-dir-extra-headers
vc-hg-dir-extra-headers is a byte-compiled function defined in
vc-hg.el.gz.
Signature
(vc-hg-dir-extra-headers DIR)
Documentation
Generate extra status headers for a repository in DIR.
This runs the command "hg summary".
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-hg.el.gz
(defun vc-hg-dir-extra-headers (dir)
"Generate extra status headers for a repository in DIR.
This runs the command \"hg summary\"."
(let ((default-directory dir))
(with-temp-buffer
(vc-hg-command t 0 nil "summary")
(goto-char (point-min))
(mapconcat
#'identity
(let (result)
(while (not (eobp))
(push
(let ((entry (if (looking-at "\\([^ ].*\\): \\(.*\\)")
(cons (capitalize (match-string 1)) (match-string 2))
(cons "" (buffer-substring (point) (line-end-position))))))
(concat
(propertize (format "%-11s: " (car entry)) 'face 'vc-dir-header)
(propertize (cdr entry) 'face 'vc-dir-header-value)))
result)
(forward-line))
(nreverse result))
"\n"))))