From: Ian Campbell Subject: Re: [PATCH v3] Try to use git commit id if hg changeset is unavailable Date: Wed, 8 May 2013 16:45:42 +0100 Message-ID: <1368027942.17285.38.camel@zakaz.uk.xensource.com> References: <20130508151651.AE77C2AF@duch.mimuw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130508151651.AE77C2AF@duch.mimuw.edu.pl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Marek Marczykowski Cc: Sander Eikelenboom , "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Wed, 2013-05-08 at 16:15 +0100, Marek Marczykowski wrote: > As Xen uses git as primary repository, get git commit id for > xen_changeset info. > > Changes in v2: > - split scm calls into separate script - based on Linux kernel one, > with tags handling removed > > Changes in v3: > - do not assume tools/scmversion started from the repository toplevel > dir - it is actually called from xen/ subdir I see you did this by removing various checks for .hg and .igt directories, but this seems a little fragile and doesn't cover the .scmversion case properly. The scmversion script already takes an optional source dir, why not just pass $(XEN_ROOT) ? Ian.