From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexandru Harsanyi Newsgroups: gmane.emacs.devel Subject: Re: vc-dired refresh Date: Sat, 19 Jan 2008 08:00:47 +0900 Message-ID: <183A3BD8-BA29-465B-A33C-D75E122B4B72@mac.com> References: <18321.7840.682424.490929@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200697264 12037 80.91.229.12 (18 Jan 2008 23:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2008 23:01:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 19 00:01:22 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 1JG0DB-0004Nc-VW for ged-emacs-devel@m.gmane.org; Sat, 19 Jan 2008 00:01:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JG0Cn-00073r-4F for ged-emacs-devel@m.gmane.org; Fri, 18 Jan 2008 18:00:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JG0Cj-00072B-Oi for emacs-devel@gnu.org; Fri, 18 Jan 2008 18:00:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JG0Ci-00071o-9N for emacs-devel@gnu.org; Fri, 18 Jan 2008 18:00:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JG0Ci-00071l-69 for emacs-devel@gnu.org; Fri, 18 Jan 2008 18:00:52 -0500 Original-Received: from hosted04.westnet.com.au ([203.10.1.217]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JG0Ch-0002zf-Im for emacs-devel@gnu.org; Fri, 18 Jan 2008 18:00:51 -0500 Original-Received: from hosted04.westnet.com.au (hosted04.westnet.com.au [127.0.0.1]) by hosted04.westnet.com.au (Postfix) with SMTP id 35CF821D8BD; Sat, 19 Jan 2008 08:00:45 +0900 (WST) Original-Received: from [10.0.1.2] (dsl-220-235-128-249.wa.westnet.com.au [220.235.128.249]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by hosted04.westnet.com.au (Postfix) with ESMTP id 3243121D8A0; Sat, 19 Jan 2008 08:00:44 +0900 (WST) In-Reply-To: <18321.7840.682424.490929@kahikatea.snap.net.nz> X-Mailer: Apple Mail (2.753) X-PMX-Branch: TNG-Outgoing X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:87066 Archived-At: On 19 Jan 2008, at 6:48 AM, Nick Roberts wrote: > > I've noticed the following problem with vc-dired. Its present in > Emacs 21.3 > and a bit obscure, so Ij ust present it here for the record. > > Sometimes that if you do version control operations outside Emacs, 'g' > (revert-buffer) in vc-dired doesn't keep track of the changes > (presumably using > some internal state). > > Here's one (contrived) example of what I'm saying: > > From the command line: > > 1) cd emacs/src (or your directory for Emacs C files. > > 2) touch emacs.c > > From Emacs (with cvs-stay-local t) > > 3) C-x v d > > 4) Dired under VC (directory): ~/emacs/src/ > > emacs.c is displayed as modified because the date has changed > > From the command line: > > 5) cvs status emacs.c > > This finds no changes, updates the timestamp in Entries and reports > that > emacs.c is up-to-date. > > From Emacs > > 6) 'g' should show now that emacs.c is not modified but doesn't, > presumably > because it doesn't consult the Entries file again. > I believe this is related to the vc-workfile-unchanged-p problem I reported in mid December 2007. Basically vc will consider a file as changed if its modification time is different than the one recorded at checkout (or when the file is first loaded). The problem will also manifest itself in C-x v v prompting you to checkin the file instead of saying that it is up to date. Cheers, Alex.