[haiku-development] Re: Mercurial version string Was:Re: Re: VOTE: Git or Mercurial (hg) as Haiku's new source control tool

  • From: Jon Yoder <darkwyrm@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 12 May 2011 07:26:17 -0400

On 05/12/2011 06:26 AM, Ingo Weinhold wrote:
On 2011-05-11 at 23:17:57 [+0200], Niels Sascha Reedijk
<niels.reedijk@xxxxxxxxx>  wrote:
Well, here's my attempt at getting a meaningful revision string (like
I put in the other thread). For my tree, with two custom commits, the
output would be:


custom:64fc2d4b5805~2011-05-11 derived from

In case of connection troubles, it would be:


A 'pure' build would be:


I'm still fan of the comparable revision number idea. Maybe the date part
can be extended by another component to make it unique? E.g.
"2011-05-11-13" would denote the 13th changeset that day. Would that be
I am, too. Another possibility would be to include the time down to the nanosecond level -- something like `date -u "+%Y-%m-%d-%k:%M.%N"` could get the job in a way that is quite readable and may not even need to include the hash itself. Just my $0.02.


Other related posts: