From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Van Holder Newsgroups: gmane.emacs.bugs Subject: bug#7905: 24.0.50; VC not updating file status properly anymore after commit from vc-dir Date: Thu, 27 Jan 2011 10:51:37 +0100 Message-ID: References: <87zkqqmvaz.fsf@leeloo.anubex.internal> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1296122163 13797 80.91.229.12 (27 Jan 2011 09:56:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 09:56:03 +0000 (UTC) Cc: 7905@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 27 10:55:55 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 1PiOa2-0000Gk-PP for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 10:55:55 +0100 Original-Received: from localhost ([127.0.0.1]:43663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiOZS-000784-QX for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Jan 2011 04:55:18 -0500 Original-Received: from [140.186.70.92] (port=49166 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiOZI-00075H-Sl for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 04:55:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiOZH-0008Hs-PL for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 04:55:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiOZH-0008Ho-LP for bug-gnu-emacs@gnu.org; Thu, 27 Jan 2011 04:55:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PiOOY-00088e-KG; Thu, 27 Jan 2011 04:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tim Van Holder Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2011 09:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7905-submit@debbugs.gnu.org id=B7905.129612141131240 (code B ref 7905); Thu, 27 Jan 2011 09:44:02 +0000 Original-Received: (at 7905) by debbugs.gnu.org; 27 Jan 2011 09:43:31 +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 1PiOO3-00087p-Ai for submit@debbugs.gnu.org; Thu, 27 Jan 2011 04:43:31 -0500 Original-Received: from mail-ww0-f42.google.com ([74.125.82.42]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PiOO0-00087c-OB for 7905@debbugs.gnu.org; Thu, 27 Jan 2011 04:43:29 -0500 Original-Received: by wwi17 with SMTP id 17so6295754wwi.3 for <7905@debbugs.gnu.org>; Thu, 27 Jan 2011 01:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=dEtOJ9qM5DfL1moUpHpHjMcLd0Mp+xWBTYfS6q025f8=; b=ETUhdcOHzp9lU6zYvIKSjYGT1bGG/gGvVl8YThEUWAwtcbZH9rFUUNYigFc/tIlymj GXIVkQNb+aVBUSMB6n8Nudhv3qa1DpsyQd9TmDOwqcf2RhgAUqNarhy7VfRD1/7t2mot t0JMJFKvAzvtNlJA7FMEVOqr9XXlS7v5BVGic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=CynAH3cGH9zs8rRhaVjkkwMM0hXyVuDSnetpyIwy1/9IgYt6jgpm5pwN4u5azNoXJE Oc0zbT1gpbEa6uNI16eCMF18Bnc1WQMt0ZGJwbi/h3/ltCZCf8sTDBNttdYKumGdVlD5 +StQDvftXOamvDfKmUIZb54CLBLRIcC6G17+k= Original-Received: by 10.216.160.84 with SMTP id t62mr1463490wek.69.1296121897564; Thu, 27 Jan 2011 01:51:37 -0800 (PST) Original-Received: by 10.216.181.203 with HTTP; Thu, 27 Jan 2011 01:51:37 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 27 Jan 2011 04:44:02 -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:43681 Archived-At: On 27 January 2011 08:25, Glenn Morris wrote: > Tim Van Holder wrote: > >>> Would it help for me to edebug particular VC defuns to see where >>> exactly things go wrong? >> >> It seems to run deeper than just commits. I'm seeing now that any >> CVS-controlled file I visit is marked as "CVS:1.x" (i.e. edited), even >> files in a freshly checked out sandbox. [C-x v u] clears that state, >> but saving the file, closing it and then revisiting it puts it in >> edited state again. > > Well that is all very wacky. Does eg Emacs 23.2 work right on that > system at present with CVS? (This is a Cygwin build?) I've been running from CVS HEAD (and now bzr trunk) for years now; the latest "installed" version is 23.0.60.1 (an old CVS HEAD build). A commit from [C-x v d] there has the "(added)" tag correctly disappearing, but it's still the old VC (vc-dired-mode instead of vc-dir), so I'm not sure it matters much. Main problem with the system is that the hardware has no kernel support anymore, so I cannot deploy official packages anymore (they all require a kernel upgrade); if absolutely necessary I could build 23.2 from sources to test its behaviour. It's not a cygwin build by the way - it's a debian linux build, but I'm running it from a PuTTY session on Windows, which then tunnels the X connection to the cygwin X windows. It's definitely an exotic setup (there are some serious problems with the recent changes to the clipboard handling), but I don't think that's likely to affect VC (the sandboxes are all on the linux machine's file system, not on a samba share). > You could try edebugging vc-cvs-state, vc-cvs-state-heuristic, and > vc-cvs-parse-entry. And the vc-cvs-*-dir-* functions if you want to > check vc-dir behaviour. Think I see the problem being caused by vc-cvs-state-heuristic; it uses the file's checkout property: (vc-file-getprop file 'vc-checkout-time) But this seems to always return 0 when I try to open a CVS-controlled file, which means vc-cvs-state-heuristic will only report either 'added or 'edited.