[haiku-development] Re: Git/Hg: some speed tests

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 04 May 2011 19:21:21 +0200

> On 2011-05-04 at 19:25:36 [+0200], Adrien Destugues 
> <pulkomandy@xxxxxxxxxxxxxxxxx> wrote:
> [ ... ]
> > If there is something like svn commit hooks, it may be possible to
> > increment a revision id in a version.h file. Then, we can include 
> > that
> > in AboutSystem (or somewhere else) to get it available in the built
> > Haiku. Would that work ? If the hook is set up on our central
> > repository, it is the only one to handle versions.
> There are commit hooks, but you can't change any version controled 
> file in 
> that hook, as that would make the changeset different between server 
> and 
> local repo. You could execute that change after executing the commit, 
> but 
> that would require doing an additional changeset just for the change 
> of 
> version.h. The latter would be similar to using a shared 
> (Mercurial-)tag, but 
> a tag has the advantage that it can be used to name revisions, as in
>       hg diff -r hrev40222 -r hrev40229

Ok, this means the version number has to live outside the repository. 
Maybe we can have some kind of table mapping hashes to rev. numbers on 
the server ? (outside the hg versionned tree). This doesn't seem so 
clean, and doesn't allow for using it directly in the command line 


Other related posts: