From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.help Subject: Re: vc-svn.el, emacs21, and subversion1.7 Date: Wed, 26 Jun 2013 20:30:58 +0100 Message-ID: References: <201306251701.r5PH1MNm012994@freefriends.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1372275072 10869 80.91.229.3 (26 Jun 2013 19:31:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 19:31:12 +0000 (UTC) Cc: Karl Berry To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 26 21:31:13 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrvQv-0004pg-7M for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jun 2013 21:31:13 +0200 Original-Received: from localhost ([::1]:56154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrvQu-0000Nl-PM for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Jun 2013 15:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrvQj-0000Nd-3G for help-gnu-emacs@gnu.org; Wed, 26 Jun 2013 15:31:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrvQi-0002M3-0L for help-gnu-emacs@gnu.org; Wed, 26 Jun 2013 15:31:01 -0400 Original-Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:51677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrvQh-0002Lv-B1 for help-gnu-emacs@gnu.org; Wed, 26 Jun 2013 15:30:59 -0400 Original-Received: by mail-ob0-f181.google.com with SMTP id 16so13917455obc.12 for ; Wed, 26 Jun 2013 12:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=G/Kdr+RFEbe4gEhw65e5O38Q7PVNoCybGT9j5AhFpiw=; b=Ly7UdDERyqRIE6GkhsSS0r95fwCWmnGCCNzWOmlRGAGNsMBisejArI38LsuTg3fp+U J7nBed6KcSGZl1A3yw8ei+lH9lj1zgGlWQU6pvrAjuyl9IKt3HzjNlyR8EVgvQywzCPQ 89V8SwhJxdJCvtqcUYKH4ojNc0J9wgxKIQRoc9PUwR5LOv4g9gzBal1S23Ia+7sCAW+a oJ2VUBFxpTlBNPGFGrFzVgIcmxbj+QteBT3B4IcVZ/YlRgbl1q7sInI4Snl6sE/A9P1a IDSNc7XFCF1mJX0pdia+uZAWVrf92VUqi/HJ+2LFOvnnaFtlHIP10PKciZvTdre4tj6B 5UVw== X-Received: by 10.60.95.198 with SMTP id dm6mr1224390oeb.44.1372275058621; Wed, 26 Jun 2013 12:30:58 -0700 (PDT) Original-Received: by 10.76.162.2 with HTTP; Wed, 26 Jun 2013 12:30:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91751 Archived-At: On 25 June 2013 20:08, Glenn Morris wrote: > Karl Berry wrote: > >> Does anyone happen to have a vc-svn.el that works with >> (a) emacs21, and >> (b) subversion 1.7/1.8? I used to have this in my "site-start.el" (I can't tell you what version of Emacs this was, your mileage may vary): (defadvice vc-svn-registered (around no-admin-dir-check (file) activate) "As of Subversion 1.7, it is no longer the case that each subdirectory in a working copy contains the \".svn\" directory. Don't test for it before invoking the Subversion client." (require 'vc-svn) ;; I don't care about autoloads! (setq ad-return-value ;; This is just the guts of the original function, ;; as defined in "vc-svn.el". (with-temp-buffer (cd (file-name-directory file)) (let* (process-file-side-effects (status (condition-case nil ;; Ignore all errors. (vc-svn-command t t file "status" "-v") ;; Some problem happened. E.g. We can't find an `svn' ;; executable. We used to only catch `file-error' but when ;; the process is run on a remote host via Tramp, the error ;; is only reported via the exit status which is turned into ;; an `error' by vc-do-command. (error nil)))) (when (eq 0 status) (let ((parsed (vc-svn-parse-status file))) (and parsed (not (memq parsed '(ignored unregistered))))))))))