From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18191 invoked by alias); 4 Dec 2013 02:48:52 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 18181 invoked by uid 89); 4 Dec 2013 02:48:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from Unknown (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 04 Dec 2013 02:48:51 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 2600C1166A8; Tue, 3 Dec 2013 21:49:21 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7v0VT+ehdGGY; Tue, 3 Dec 2013 21:49:21 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id B3CC611667B; Tue, 3 Dec 2013 21:49:20 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 8C92CE081D; Wed, 4 Dec 2013 06:48:40 +0400 (RET) Date: Wed, 04 Dec 2013 02:48:00 -0000 From: Joel Brobecker To: Alan Modra Cc: gdb-patches@sourceware.org Subject: Re: Adding GDB branches to your nightly version updates... Message-ID: <20131204024840.GF3114@adacore.com> References: <20131203074923.GK5193@adacore.com> <20131204004303.GE3306@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131204004303.GE3306@bubble.grove.modra.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-12/txt/msg00114.txt.bz2 > I'm happy to do that, but don't be surprised at the occasional glitch. > I'm still learning the ropes with git.. For example, I keep two > virgin copies of the repository just for the cron job that updates > version.h in master and binutils-2_24-branch. I'm sure I could do > with just one copy, but cp -al seemed easy at the time. :) Thanks, Alan. If the repository is kept clean (no un-comitted) changes, you can just do "git checkout " (where branch_name would be "master", or the binutils active branch, or GDB's active branch). With git, branch changes are really fast. On the other hand, we might want to keep all commits as close as possible to the midnight mark, so that we don't have to delay too much the GDB scripts. If we use multiple copies of the repo, we avoid the time it takes to switch between branch, which takes, on my laptop, between 1 and 3 seconds. But on the other hand of the other hand, we already have the delay it takes to fetch new changes, and unless your script was programmed to fetch only the branch you want, you'd be fetching the same data 3 times, which can add to the delay. The bottom line is that I'm thinking way too much into this, and that you probably don't really have any real reason to change a thing :). Is the script running on sourceware? If you'd like, we can share responsibility of the script, and help out with the git part. -- Joel