All of lore.kernel.org
 help / color / mirror / Atom feed
From: Holger Freyther <zecke@selfish.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Hash based SCMs and OpenEmbedded/Bitbake
Date: Thu, 4 Sep 2008 17:46:44 +0200	[thread overview]
Message-ID: <200809041746.44987.zecke@selfish.org> (raw)
In-Reply-To: <1220528603.10295.236.camel@mill.internal.reciva.com>

On Thursday 04 September 2008 13:43:23 Phil Blundell wrote:
> On Wed, 2008-09-03 at 15:54 +0200, Holger Freyther wrote:
> > we have a couple of issues with hash based SCMs (like git) and how we
> > handle them.
>
> It's kind of tempting to say that you should just lean on your upstream
> to make proper releases and use them, rather than trying to pull some
> random bag of bits out of the SCM repository.  However, I guess this was
> not the sort of advice you were looking for. :-}
>
> Perhaps more constructively, my preference would be to use "git log" or
> some such to extract the datestamp of the revision in question, and then
> glue it into PV to make a version string that was sortable and hence
> upgradeable.  So, if you had git revision
> 5a5346dfbec459c10d9e61e16e125b83975a1ef1 or whatever, you'd end up with
> PV = "1.0.0+git20080904T123500
> +5a5346dfbec459c10d9e61e16e125b83975a1ef1".  Obviously you still have
> the possibility of losing if you want to upgrade from one revision to
> another one committed in the same second, but I imagine this does not
> arise often in practice.

What is happening is you cherry-pick from another branch and then you have an 
older revision (by commit date) on top and would be able to upgrade. Nice 
idea but I think it will not work. There is the author/comitter separation 
but AFAIK no for the commit date.


z.



  reply	other threads:[~2008-09-04 15:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-03 13:54 Hash based SCMs and OpenEmbedded/Bitbake Holger Freyther
2008-09-03 17:39 ` Koen Kooi
2008-09-03 23:17   ` Holger Freyther
2008-09-04  9:54     ` Koen Kooi
2008-09-04 15:43       ` Holger Freyther
2008-09-04 11:43 ` Phil Blundell
2008-09-04 15:46   ` Holger Freyther [this message]
2008-10-12 22:34 ` Holger Freyther
2008-10-12 23:30   ` Richard Purdie
2008-10-13 16:52     ` Holger Freyther
2008-10-13 19:37       ` Koen Kooi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200809041746.44987.zecke@selfish.org \
    --to=zecke@selfish.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.