From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#7850: 23.2.91; emacs runs svn status -v after every file save Date: Thu, 20 Jan 2011 21:39:25 -0500 Message-ID: References: <20110116164820.GD4949@srevilak.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1295578507 14120 80.91.229.12 (21 Jan 2011 02:55:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2011 02:55:07 +0000 (UTC) Cc: 7850@debbugs.gnu.org To: Steve Revilak Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 21 03:55:01 2011 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.69) (envelope-from ) id 1Pg79R-0005Oo-7a for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jan 2011 03:55:01 +0100 Original-Received: from localhost ([127.0.0.1]:51979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pg79L-0005sX-EG for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Jan 2011 21:54:55 -0500 Original-Received: from [140.186.70.92] (port=33438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pg79E-0005qw-6P for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2011 21:54:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pg79D-0004dD-0G for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2011 21:54:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pg79C-0004d3-Uq for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2011 21:54:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pg6nB-0002rS-UD; Thu, 20 Jan 2011 21:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jan 2011 02:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7850 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7850-submit@debbugs.gnu.org id=B7850.129557710010968 (code B ref 7850); Fri, 21 Jan 2011 02:32:01 +0000 Original-Received: (at 7850) by debbugs.gnu.org; 21 Jan 2011 02:31:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pg6mp-0002qr-5s for submit@debbugs.gnu.org; Thu, 20 Jan 2011 21:31:39 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pg6mn-0002qg-KQ for 7850@debbugs.gnu.org; Thu, 20 Jan 2011 21:31:38 -0500 Original-Received: from localhost ([127.0.0.1]:41227) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pg6uL-0004d7-W6; Thu, 20 Jan 2011 21:39:26 -0500 X-Spook: ANZUS Bellcore Comirex Roswell embassy mindwar Janet Reno X-Ran: +K@Z3eov8+aWhS^i$@If8A_}p'K>D}Wl|})#3I[iP~O0/wvAr<' (Steve Revilak's message of "Sun\, 16 Jan 2011 11\:48\:20 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 20 Jan 2011 21:32:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:43499 Archived-At: Steve Revilak wrote: > When editing a file that is kept in svn version control, emacs runs > "svn status -V FILE" each time the file's buffer is saved. Other vc > backends do not exhibit this behavior. For example, the git backend > does not run "git status" on save, and the cvs backend does not run > "cvs status" on save. This can be changed by altering the definition of vc-svn-state-heuristic. Simply copying the CVS one seems fine (?). I don't think this is an appropriate change for the coming Emacs 23.3 though. *** lisp/vc-svn.el 2011-01-02 23:50:46 +0000 --- lisp/vc-svn.el 2011-01-21 02:28:37 +0000 *************** *** 156,162 **** (defun vc-svn-state-heuristic (file) "SVN-specific state heuristic." ! (vc-svn-state file 'local)) ;; FIXME it would be better not to have the "remote" argument, ;; but to distinguish the two output formats based on content. --- 156,170 ---- (defun vc-svn-state-heuristic (file) "SVN-specific state heuristic." ! ;; If the file has not changed since checkout, consider it `up-to-date'. ! ;; Otherwise consider it `edited'. Copied from vc-cvs-state-heuristic. ! (let ((checkout-time (vc-file-getprop file 'vc-checkout-time)) ! (lastmod (nth 5 (file-attributes file)))) ! (cond ! ((equal checkout-time lastmod) 'up-to-date) ! ((string= (vc-working-revision file) "0") 'added) ! ((null checkout-time) 'unregistered) ! (t 'edited)))) ;; FIXME it would be better not to have the "remote" argument, ;; but to distinguish the two output formats based on content.