[haiku-sysadmin] Re: hg clone of haiku repository

  • From: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
  • To: haiku-sysadmin@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2009 21:37:40 +0200

Hi Niels,

On 2009-10-02 at 14:06:55 [+0200], Niels Reedijk <niels.reedijk@xxxxxxxxx> 
wrote:
> 
> 2009/10/2 Niels Reedijk <niels.reedijk@xxxxxxxxx>:
> >
> >>> They actually put the svn r numbers in their log messages. I like
> >>> this. I know there are more than enough ways to differentiate between
> >>> your local changes and the ones from the trunk, but being able to
> >>> quickly know what you're dealing with in a 'hg log' is worth
> >>> something.
> >>
> >> Sure, I agree that it would be nice to have this feature. Do you have any
> >> idea how they (openttd) implement it?
> >
> > I hear there's a one-line patch somewhere, I am looking for it to see
> > what it touches exactly.
> 
> That's quick :-) Here it is:
> 
> http://paste.openttd.org/217097.
> 
> The command they use to keep the hg repository up to date is:
> 
> $HG --encoding UTF8 convert --datesort --config convert.svn.branches=
> --config convert.svn.tags= --config convert.svn.trunk=
> $SVN_REPOS/$dir$name $repos_name.hg
> 
> Up to you whether you want to implement the patch, it is a one-liner
> which can be applied directly to the installed hg files. Only thing is
> that we need to keep applying it with updates.

I have created a new openSUSE-build-service project for mercurial yesterday 
(named home:olta:mercurial), added the patch referred above and triggered a 
build.

Today, I added that repository to svn.haiku-os.org, updated mercurial to *our* 
version and let both mercurial repos be reconverted. Seems to work just fine 
and gives a much better result. :-)

So, thanks for the hint!
 
cheers,
        Oliver

Other related posts: