Hi Christian,

Christian Lohmaier wrote:
> Hi Heiner, *,
> 
> On Mon, Aug 24, 2009 at 3:34 PM, Jens-Heiner
> Rechtien<[email protected]> wrote:
>> this might not the smartest way to do it but one possible way would be:
>>
>> 1) setup a tree less clone of the master repository, which is kept
>> current via a cron job (once a day or so)
>>
>> $ hg clone -U http://hg.services.openoffice.org/hg/DEV300 <clean>
>>
>> 2) cd <clean>
>>
>> 3) hg incoming --template '{date|shortdate}\n'
>> http://hg.services.openoffice.org/hg/cws/<cws> | tail -n 1
>>
>> gives you the date of the last changeset added to the cws which is not
>> in the master (yet).
>>
>> You might want to use the mercurial "raw internal" date for easier
>> comparison, you can do so by exchanging 3) to
>>
>> 3) hg incoming --template '{date}\n'
>> http://hg.services.openoffice.org/hg/cws/<cws> | tail -n 1
>>
>> this gives you something like
>>
>> 1251109813.00
>>
>> which is nicely monotone increasing with time :-)
> 
> That is slightly better than using identify (that only gives the
> revision), but still somewhat poor.
> 
> I'd really like to have the commit-message and the affected files
> along with the date, to be able to create an overview just like with
> svn:
> in the status page:
> http://tinderbox.go-oo.org/cmcfixes62/status.html
> individual commits listed in the time-column all along with the build stati
> and more details here (click a date on the status page and you'll jump
> to the corresponding place in the vc-data page)
> http://tinderbox.go-oo.org/cmcfixes62/all_vc.html

Oh, you can customize the output of "incoming" with the hg template
engine. Incredible flexible. Just have a look here:
http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html

I use this for example for creating the "commit log messages" for a hg
based CWS integrated via Subversion.

hg incoming --newest-first --template '{date|shortdate} {author|person}
{desc}\n' http://hg.services.openoffice.org/hg/cws/<cws>


> 
> What the svn page is lacking, is links to the actual diffs (but
> currently there's no webserver that can provide specific revisions of
> a file/show a diff between two given revisions for OOo's tree)
> 
>> If you detect a "dirty" tree, just do a
>>
>> hg clone -U <clean> <working>
>> cd <working>
>> hg pull http://hg.services.openoffice.org/hg/cws/<cws>
>> [two heads now, tip is the last changeset of the CWS]
>> hg update -r tip
> 
> Tinderbox doesn't build itself, so that's not needed, that's the job
> of the buildslaves :-)
> 
> The pushlog (unfortunately not on OOo's version :-(() is very close to
> what I want. (if it had the comments along with the filelist in a
> single feed, that would be perfect)

We control the webinterface so I'm sure we can create something for you
if the above mentioned approach doesn't work.

Regards,
  Heiner



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to