Function: vc-bzr-branch-conf

vc-bzr-branch-conf is a byte-compiled function defined in vc-bzr.el.gz.

Signature

(vc-bzr-branch-conf FILE)

Documentation

Return the Bazaar branch settings for file FILE, as an alist.

Each element of the returned alist has the form (NAME . VALUE), which are the name and value of a Bazaar setting, as strings.

The settings are read from the file ".bzr/branch/branch.conf" in the repository root directory of FILE.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-bzr.el.gz
(defun vc-bzr-branch-conf (file)
  "Return the Bazaar branch settings for file FILE, as an alist.
Each element of the returned alist has the form (NAME . VALUE),
which are the name and value of a Bazaar setting, as strings.

The settings are read from the file \".bzr/branch/branch.conf\"
in the repository root directory of FILE."
  (let (settings)
    (with-temp-buffer
      (insert-file-contents
       (expand-file-name vc-bzr-admin-branchconf (vc-bzr-root file)))
      (while (re-search-forward "^\\([^#=][^=]*?\\) *= *\\(.*\\)$" nil t)
	(push (cons (match-string 1) (match-string 2)) settings)))
    settings))