unofficial mirror of emacs-devel@gnu.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: Sat, 1 Nov 2008 14:24:30 +0100	[thread overview]
Message-ID: <20081101142430.0acf8a5a@terra.solaris> (raw)
In-Reply-To: <200810270738.m9R7cHO7020963@mothra.ics.uci.edu>


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

Hi,

Dan Nicolaescu <dann@ics.uci.edu>:
> 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.

I provided the wrong patch as I just noticed...Parent branch is the
more meaningful property compared to branch root.

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-headers.patch --]
[-- Type: text/x-patch; name=bzr-headers.patch, Size: 1201 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 23:22:29.000000000 +0100
@@ -664,6 +664,18 @@
   (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 "Parent branch: " 'face 'font-lock-type-face)
+     (propertize 
+      (if (string-match "parent branch: \\(.+\\)$" str)
+	  (match-string 1 str)
+	"None")
+       'face 'font-lock-variable-name-face))))
 ;;; Revision completion
 
 (defun vc-bzr-revision-completion-table (files)
@@ -722,6 +734,9 @@
 (eval-after-load "vc"
   '(add-to-list 'vc-directory-exclusion-list vc-bzr-admin-dirname t))
 
+(defun vc-bzr--call (buffer command &rest args)
+  (apply 'process-file "bzr" nil buffer nil command args))
+
 (provide 'vc-bzr)
 ;; arch-tag: 8101bad8-4e92-4e7d-85ae-d8e08b4e7c06
 ;;; vc-bzr.el ends here

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

  parent reply	other threads:[~2008-11-01 13:24 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
2008-11-01 15:33       ` Richard M. Stallman
2008-11-01 13:24     ` Christian Faulhammer [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20081101142430.0acf8a5a@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).