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: Mon, 31 Jan 2011 14:59:00 +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 1296482747 15888 80.91.229.12 (31 Jan 2011 14:05:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 14:05:47 +0000 (UTC) Cc: 7905@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 31 15:05:43 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 1PjuNy-0002lv-Ph for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Jan 2011 15:05:43 +0100 Original-Received: from localhost ([127.0.0.1]:39926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjuNx-0006vT-Oa for geb-bug-gnu-emacs@m.gmane.org; Mon, 31 Jan 2011 09:05:41 -0500 Original-Received: from [140.186.70.92] (port=39531 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjuNt-0006vK-N5 for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2011 09:05:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjuNs-0000un-Cq for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2011 09:05:37 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjuNs-0000ua-B7 for bug-gnu-emacs@gnu.org; Mon, 31 Jan 2011 09:05:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pju9m-0003rc-3s; Mon, 31 Jan 2011 08:51: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: Mon, 31 Jan 2011 13:51: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.129648184314826 (code B ref 7905); Mon, 31 Jan 2011 13:51:02 +0000 Original-Received: (at 7905) by debbugs.gnu.org; 31 Jan 2011 13:50:43 +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 1Pju9S-0003r4-Jl for submit@debbugs.gnu.org; Mon, 31 Jan 2011 08:50:43 -0500 Original-Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pju9R-0003qt-35 for 7905@debbugs.gnu.org; Mon, 31 Jan 2011 08:50:41 -0500 Original-Received: by wwj40 with SMTP id 40so5988753wwj.15 for <7905@debbugs.gnu.org>; Mon, 31 Jan 2011 05:59:01 -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=JfgqPkB6bR5G1EtO8jNRrVaZSo+z2DBMAVCqyxBai78=; b=fhwSH94vNQ4RWu7e2v/8jJTSojQEco1erA+jdgLg/2nO+yB/iGSeXJp1dGpzuOiy/B 8peNovFu8ygTOVB+CMkcUywUkdo+GI7lEiu2KEot3sgAT+CYlTQ5lCwby3/V0MYI5QM1 8BlvRrRMqC/SBr9Fjihl+sehlR7SXcnQ+75d8= 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=WMjSoh798L9+9SjcJQoJM+gh7V6MtaWkQiR+NehH9FGhE07Wde5MNc5ECHnqIeQFhh 48G3GlHaysIOQeI9/3QoQBqaqfXbaDVRP4d/dOw72KphW6387DonkBYhD69f10A73YaO eErFnnnZFPUvNOepEnVx5lvhci57Z4yEE4mr0= Original-Received: by 10.216.14.147 with SMTP id d19mr10436454wed.84.1296482341004; Mon, 31 Jan 2011 05:59:01 -0800 (PST) Original-Received: by 10.216.181.203 with HTTP; Mon, 31 Jan 2011 05:59:00 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 31 Jan 2011 08:51:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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:43782 Archived-At: On 31 January 2011 11:31, Andreas Schwab wrote: > Tim Van Holder writes: > >> $ grep foo CVS/Entries >> /foo/1.297.2.24/Mon Jan 31 08:30:58 2011//Tmytag >> $ stat foo >> Modify: 2011-01-31 09:30:58.000000000 +0100 > > Those are the same time stamp. > > Andreas. Yes, but they end up not comparing as equal in VC. Given a similar file but with CVS/Entries having "Tue Jan 11 15:18:16 2011" and stat giving "2011-01-11 16:18:16 +0100", edebugging vc-cvs-parse-entry gets: "time" as "Tue Jan 11 15:18:16 2011" (from matching its CVS/Entries line). "mtime" as (19756 29880) (from "(nth 5 (file-attributes ))") "parsed-time" as (16 18 15 11 1 2011 2 nil 0) (from parse-time on value of "time") It then has a check (equal mtime (apply 'encode-time parsed-time)) which returns nil; the apply yields (19756 26280), which is indeed not the same as (19756 29880). Checking the behaviour of (encode-time) I see that (encode-time 16 18 15 11 1 2011 2 nil 3600) (encode-time 16 18 15 11 1 2011 2 nil 0) both return the same value "(19756 26280)" (which decodes as "(16 18 15 11 1 2011 2 nil 3600)"). This strikes me as odd since encode-time explicitly says that it treats the last argument as timezone offset, suggesting that it cares about it.