From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.help Subject: Re: problem with vc-svn + tramp. Date: Wed, 14 Dec 2005 21:31:19 -0800 Organization: Newt Software Message-ID: <87fyovncyg.fsf@olgas.newt.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1134624902 29520 80.91.229.2 (15 Dec 2005 05:35:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2005 05:35:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 15 06:34:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmlkN-0008VQ-Uk for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 06:33:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emll0-0006Ir-Ak for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Dec 2005 00:34:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Emlkk-0006IJ-AM for help-gnu-emacs@gnu.org; Thu, 15 Dec 2005 00:34:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Emlkh-0006Gy-Ef for help-gnu-emacs@gnu.org; Thu, 15 Dec 2005 00:34:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emlkh-0006Gt-Bn for help-gnu-emacs@gnu.org; Thu, 15 Dec 2005 00:34:03 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Emlms-0007xb-CS for help-gnu-emacs@gnu.org; Thu, 15 Dec 2005 00:36:18 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Emlie-000874-2p for help-gnu-emacs@gnu.org; Thu, 15 Dec 2005 06:31:56 +0100 Original-Received: from h-68-165-7-242.snvacaid.dynamic.covad.net ([68.165.7.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Dec 2005 06:31:56 +0100 Original-Received: from wohler by h-68-165-7-242.snvacaid.dynamic.covad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Dec 2005 06:31:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 54 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: h-68-165-7-242.snvacaid.dynamic.covad.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:FtOjZFna5VC13cVEjbt+wCl1WwU= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31946 Archived-At: Emory Smith writes: > George Nurser writes: > >> I am using emacs 22.0.50, running on a powerbook. When I use tramp to >> edit a file in a subversion directory by doing ssh onto a SUN >> workstation, it seems to automatically switch on the vc-svn mode. It >> then keeps failing, with the message >> >> vc-do-command: Running svn...FAILED (status 127) > > ive had a lot trouble with this as well. > > heres a simple fix that works great for me. > > find the following function in vc-svn.el: > > (defun vc-svn-registered (file) > "Check if FILE is SVN registered." > (when (file-readable-p (expand-file-name ".svn/entries" > (file-name-directory file))) > (with-temp-buffer > (cd (file-name-directory file)) > (condition-case nil > (vc-svn-command t 0 file "status" "-v") > ;; We can't find an `svn' executable. We could also deregister SVN. > (file-error nil)) > (vc-svn-parse-status t) > (eq 'SVN (vc-file-getprop file 'vc-backend))))) > > and replace it with: > > (defun vc-svn-registered (file) > "Check if FILE is SVN registered." > nil) > > this effectively disables vc-svn for all files. im sure theres a > simpler / more elegant way of doing this ... (anyone?) Stefan Monnier and I just made some changes to that function to fix a problem that it had when you were editing files that you could not write. Perhaps that's the problem you both describe? Please check out the latest and see how it works for you. >> Incidentally, now does the vc-svn mode compare with the psvn.el >> available at http://www.xsteve.at/prg/vc_svn/ ? psvn.el is to vc-svn.el as pcvs.el is to vc-cvs.el. It's essentially a dired view of your files. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane.