From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: patch vs. overwrite in bzr Date: Sat, 07 Apr 2012 13:44:28 +0200 Message-ID: <877gxrbwbn.fsf@wanadoo.es> References: <87k42cwys8.fsf@gnu.org> <87ehs4yrhz.fsf@gnu.org> <83k41vctyg.fsf@gnu.org> <83aa2rcnww.fsf@gnu.org> <8362dedgcb.fsf@gnu.org> <87zkapi7qe.fsf@gnu.org> <83iphdb6dp.fsf@gnu.org> <878vi9gqst.fsf@gnu.org> <838vi9b2sr.fsf@gnu.org> <87lim9f9fx.fsf@gnu.org> <83zkaoa8gr.fsf@gnu.org> <87bon4b7hd.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1333799088 31928 80.91.229.3 (7 Apr 2012 11:44:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 7 Apr 2012 11:44:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 07 13:44:47 2012 Return-path: Envelope-to: ged-emacs-devel@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 1SGU4U-0008IB-0k for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2012 13:44:46 +0200 Original-Received: from localhost ([::1]:47123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGU4T-0000VF-A5 for ged-emacs-devel@m.gmane.org; Sat, 07 Apr 2012 07:44:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGU4Q-0000Sr-EA for emacs-devel@gnu.org; Sat, 07 Apr 2012 07:44:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGU4O-0004mI-HU for emacs-devel@gnu.org; Sat, 07 Apr 2012 07:44:41 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGU4O-0004mC-BF for emacs-devel@gnu.org; Sat, 07 Apr 2012 07:44:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SGU4L-0008Bh-KV for emacs-devel@gnu.org; Sat, 07 Apr 2012 13:44:37 +0200 Original-Received: from 215.red-81-43-220.staticip.rima-tde.net ([81.43.220.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Apr 2012 13:44:37 +0200 Original-Received: from ofv by 215.red-81-43-220.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Apr 2012 13:44:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 215.red-81-43-220.staticip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:mB9S9FvXaNVOS21VK4jeFm+O9VI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149457 Archived-At: Andreas Schwab writes: > Óscar Fuentes writes: > >> On addition, when I switch branches from Emacs the relevant function is >> advised for storing timestamps of the files of the current branch before >> the switch and recover the timestamps of the new branch's files after >> the switch, so no rebuild is triggered because some source file was >> modified by the switch when the new branch already has an associated up >> to date build. > > Whatfor? git doesn't touch files that didn't change when checking out a > different revision. The point is to keep the timestamps of the files that did change: 1. while in branch A, build the project; build products go to build/A directory. 2. switch to branch B. 3. switch to branch A. All the files that are different among those branches now have altered timestamps, so `make' thinks the products on build/A are out of date, when in fact they are not. The scheme I described avoids this situation.