all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Faulhammer <opfer@gentoo.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: Chong Yidong <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: Re: Status of VC Bazaar support?
Date: Fri, 31 Oct 2008 20:57:29 +0100	[thread overview]
Message-ID: <20081031205729.3ae0c73d@terra.solaris> (raw)
In-Reply-To: <200810270738.m9R7cHO7020963@mothra.ics.uci.edu>


[-- Attachment #1.1: Type: text/plain, Size: 966 bytes --]

Hi,

Dan Nicolaescu <dann@ics.uci.edu>:

> Christian Faulhammer <opfer@gentoo.org> writes:
>   >  I just noticed today the following:
>   > When calling vc-dir on a bzr repository one gets:
>   > 
>   > "VC backend : Bzr
>   > Working dir: /tmp/bzr/
>   > Extra      : Please add backend specific headers here.  It's
>   > easy! "
> 
> Someone that uses bzr needs to decide what kind of info is useful to
> have in the bzr specific headers. 
> 
> Probably some of the output of "bzr info" needs to go there.
> 
> To do that, implement a function called `vc-bzr-dir-extra-headers'.
> Look in the other vc-*.el files for examples how to do that.

 Attached is a patch for a first inclusion.  I don't know if it is a
trivial change, but if not: I don't have papers filed to the FSF.

V-Li

-- 
Christian Faulhammer, Gentoo Lisp project
<URL:http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode

<URL:http://www.faulhammer.org/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: bzr-status-headers.patch --]
[-- Type: text/x-patch; name=bzr-status-headers.patch, Size: 1244 bytes --]

--- /usr/portage/distfiles/cvs-src/emacs/lisp/vc-bzr.el	2008-10-12 19:57:10.000000000 +0200
+++ /usr/share/emacs/23.0.60/lisp/vc-bzr.el	2008-10-31 21:26:20.000000000 +0100
@@ -664,6 +664,19 @@
   (apply 'vc-bzr-command "status" (current-buffer) 'async dir "-v" "-S" files)
   (vc-exec-after
    `(vc-bzr-after-dir-status (quote ,update-function))))
+
+(defun vc-bzr-status-extra-headers (dir)
+  (let ((str (with-output-to-string
+               (with-current-buffer standard-output
+                 (vc-bzr--call '(t nil) "info")))))
+    (concat
+     (propertize "Branch root: " 'face 'font-lock-type-face)
+     (propertize
+		 (if (and (string-match "branch root: \\(.+\\)$" str) (string-match "\\." (match-string 1 str)))
+		     "Current directory"
+		   (match-string 1 str))
+       'face 'font-lock-variable-name-face))))
+
 ;;; Revision completion
 
 (defun vc-bzr-revision-completion-table (files)
@@ -723,5 +736,9 @@
   '(add-to-list 'vc-directory-exclusion-list vc-bzr-admin-dirname t))
 
 (provide 'vc-bzr)
+
+(defun vc-bzr--call (buffer command &rest args)
+  (apply 'process-file "bzr" nil buffer nil command args))
+
 ;; arch-tag: 8101bad8-4e92-4e7d-85ae-d8e08b4e7c06
 ;;; vc-bzr.el ends here

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-10-31 19:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-28 20:01 Status of VC Bazaar support? Chong Yidong
2008-10-22 18:43 ` Christian Faulhammer
2008-10-24 22:50 ` Christian Faulhammer
2008-10-24 23:54   ` Chong Yidong
2008-10-27  7:38   ` Dan Nicolaescu
2008-10-31 19:57     ` Christian Faulhammer [this message]
2008-11-01 15:33       ` Richard M. Stallman
2008-11-01 13:24     ` Christian Faulhammer
2008-11-03  3:16       ` Chong Yidong
2008-11-04 17:37       ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2008-10-14 21:11 Chong Yidong
2008-10-15 13:34 ` Magnus Henoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081031205729.3ae0c73d@terra.solaris \
    --to=opfer@gentoo.org \
    --cc=cyd@stupidchicken.com \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.