From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.bugs Subject: bug#927: vc-bzr.el with cygwin bzr Date: Mon, 08 Sep 2008 11:51:37 +0200 Message-ID: Reply-To: Phillip Lord , 927@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220880149 14875 80.91.229.12 (8 Sep 2008 13:22:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2008 13:22:29 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 15:23:24 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KcgiB-0001aa-Hu for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 15:23:24 +0200 Original-Received: from localhost ([127.0.0.1]:49316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcghA-0000hD-JD for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 09:22:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kcdeo-0005Wc-DL for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:07:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kcdek-0005Ue-SZ for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:07:41 -0400 Original-Received: from [199.232.76.173] (port=56273 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kcdek-0005UC-9R for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:07:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33998) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kcdej-0000uL-AT for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 06:07:38 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m88A7Wpa025403; Mon, 8 Sep 2008 03:07:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m88A03Y3021548; Mon, 8 Sep 2008 03:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Phillip Lord Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 08 Sep 2008 10:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 927 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122086751919553 (code B ref -1); Mon, 08 Sep 2008 10:00:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Sep 2008 09:51:59 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m889ptx1019547 for ; Mon, 8 Sep 2008 02:51:57 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcdPX-0007c6-6T for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:51:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcdPU-0007aG-PC for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:51:54 -0400 Original-Received: from [199.232.76.173] (port=58719 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcdPU-0007a8-Hi for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:51:52 -0400 Original-Received: from cheviot11.ncl.ac.uk ([128.240.234.11]:40107) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcdPU-0006pW-8D for bug-gnu-emacs@gnu.org; Mon, 08 Sep 2008 05:51:52 -0400 Original-Received: from cheviot11.ncl.ac.uk (localhost.localdomain [127.0.0.1]) by cheviot11.ncl.ac.uk (8.13.8/8.13.8) with SMTP id m889piJ6011253 for ; Mon, 8 Sep 2008 10:51:44 +0100 Original-Received: from smtpauth1.ncl.ac.uk (smtpauth1.ncl.ac.uk [10.8.232.41]) by cheviot11.ncl.ac.uk (cheviot11.ncl.ac.uk [128.240.234.73]) id k87Api3021315674Yh ret-id none; Mon, 08 Sep 2008 10:51:44 +0100 Original-Received: from HAUGHTON ([212.247.10.33]) (authenticated bits=0) by smtpauth1.ncl.ac.uk (8.13.8/8.13.8) with ESMTP id m889pfD7021026 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 8 Sep 2008 10:51:43 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-smtpf-Report: client=lan,relay,white,ipv6; mail=; rcpt=white X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 08 Sep 2008 06:07:41 -0400 X-Mailman-Approved-At: Mon, 08 Sep 2008 09:22:00 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20346 Archived-At: Problem: vc-bzr.el doesn't work with cygwin bzr I've recently been trying out bzr on windows and was pleased to find vc-bzr.el. It works well with the windows bzr executable but, unfortunately, this doesn't deal with symlinks which is important to me. So I tried cygwin instead. Unfortunately vc-bzr.el doesn't work with this failing with "No such file or program" errors. vc-svn and vc-cvs work fine with cygin. Cause: bzr is a python file. On cygwin it uses a magic #!/usr/bin/python line, which vc "start-process" doesn't work with. I tested this with following hack, which launches python and gives the location of bzr (under cygwin as it's cygwin python) as an argument. (defun vc-bzr-command (bzr-command buffer okstatus file-or-list &rest args) "Wrapper round `vc-do-command' using `vc-bzr-program' as COMMAND. Invoke the bzr command adding `BZR_PROGRESS_BAR=none' and `LC_MESSAGES=C' to the environment." (let ((process-environment (list* "BZR_PROGRESS_BAR=none" ; Suppress progress output (bzr >=0.9) "LC_MESSAGES=C" ; Force English output process-environment))) (apply 'vc-do-command (or buffer "*vc*") okstatus "python" file-or-list "/usr/bin/bzr" bzr-command args))) vc-bzr now works. Suggested Solution: My hack is platform specific. A better solution would be, to modify vc-bzr-command to be either of the form "bzr-program-name" or '("python name" "bzr name"). vc-bzr-command would need to be modified to cope. There is couple of other places vc-bzr-command is used which would need changing also. Thanks for your attention! Phil