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

  • From: Niels Sascha Reedijk <niels.reedijk@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 14 May 2011 13:15:09 +0200

Hi,

Here's a second implementation. Note that my shell-scripting still
sucks, so forgive me for that.

Anyway, using a small extension on the server-side, it is now possible
to fetch the revision number of a changeset on haiku-central.


So for a build with custom changesets I get:
custom:46900e539f7b~2011-05-12 derived from haiku-central:39309:47b487e35b93

In case of connection troubles, it would be:
unverified:64fc2d4b5805~2011-05-11

A 'pure' build would yield the following revision string:
haiku-central:39383:46900e539f7b

Using a similar technique reverse mapping is possible, meaning
statements like "hg log -r haiku-central:39383" could become possible.
 (*)


This would thus reintroduce a consistent revision numbering based on
haiku-central (at the expense of the necessity of a network
connection, but I don't consider that a major issue).

N>

(*) pending implementation

Other related posts: