From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: patch for vc-svn.el Date: Sun, 04 May 2008 17:53:04 -0600 Message-ID: Reply-To: tromey@redhat.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209945218 5002 80.91.229.12 (4 May 2008 23:53:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2008 23:53:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 05 01:54:14 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jso22-0004Od-3X for ged-emacs-devel@m.gmane.org; Mon, 05 May 2008 01:54:14 +0200 Original-Received: from localhost ([127.0.0.1]:53002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jso1K-0001Uh-8O for ged-emacs-devel@m.gmane.org; Sun, 04 May 2008 19:53:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jso13-0001HN-Va for emacs-devel@gnu.org; Sun, 04 May 2008 19:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jso13-0001Gh-Dc for emacs-devel@gnu.org; Sun, 04 May 2008 19:53:13 -0400 Original-Received: from [199.232.76.173] (port=59591 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jso13-0001GV-4D for emacs-devel@gnu.org; Sun, 04 May 2008 19:53:13 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jso12-0003ca-Sq for emacs-devel@gnu.org; Sun, 04 May 2008 19:53:13 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m44Nr6Wj025645 for ; Sun, 4 May 2008 19:53:06 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m44Nr65G014872; Sun, 4 May 2008 19:53:06 -0400 Original-Received: from opsy.redhat.com (vpn-14-213.rdu.redhat.com [10.11.14.213]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m44Nr6bG023548; Sun, 4 May 2008 19:53:06 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 66CE73781B2; Sun, 4 May 2008 17:53:05 -0600 (MDT) X-Attribution: Tom User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96465 Archived-At: I tried vc-dir on an svn-controlled directory and got: file-name-absolute-p(nil) cd(nil) vc-svn-registered("ChangeLog") apply(vc-svn-registered "ChangeLog") vc-call-backend(SVN registered "ChangeLog") #[(b) "\302^H\303 #\205^T^@\304 \305^H#\205^T^@\306\307\310\"\207" [b f\ ile vc-call-backend registered vc-file-setprop vc-backend throw found t] 4](SVN\ ) mapc(#[(b) "\302^H\303 #\205^T^@\304 \305^H#\205^T^@\306\307\310\"\2\ 07" [b file vc-call-backend registered vc-file-setprop vc-backend throw found t\ ] 4] (RCS CVS SVN SCCS Bzr Git Hg Mtn Arch MCVS)) byte-code("\303^H\304\"^Y\305\306 \203^Q^@ \307=\203^U^@ \202^X^@ B\"\210)\310^H\304\307#\210\311\207" [file backend vc-handled-backends vc-file-\ getprop vc-backend mapc #[(b) "\302^H\303 #\205^T^@\304 \305^H#\205^T^\ @\306\307\310\"\207" [b file vc-call-backend registered vc-file-setprop vc-back\ end throw found t] 4] none vc-file-setprop nil] 4) vc-registered("ChangeLog") vc-backend("ChangeLog") vc-responsible-backend("ChangeLog") [...] This patch fixed it for me. Tom 2008-05-04 Tom Tromey * vc-svn.el (vc-svn-registered): Don't pass nil to cd. Index: vc-svn.el =================================================================== RCS file: /sources/emacs/emacs/lisp/vc-svn.el,v retrieving revision 1.83 diff -u -c -r1.83 vc-svn.el cvs diff: conflicting specifications of output style *** vc-svn.el 2 May 2008 17:47:25 -0000 1.83 --- vc-svn.el 4 May 2008 23:51:28 -0000 *************** *** 121,127 **** "/entries") (file-name-directory file))) (with-temp-buffer ! (cd (file-name-directory file)) (let ((status (condition-case nil ;; Ignore all errors. --- 121,127 ---- "/entries") (file-name-directory file))) (with-temp-buffer ! (cd (or (file-name-directory file) default-directory)) (let ((status (condition-case nil ;; Ignore all errors.