Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

hg.mozilla.org pushlog

60 views
Skip to first unread message

Stanimir Stamenkov

unread,
May 24, 2010, 6:46:18 PM5/24/10
to
I'm not sure I'm posting this to the right group - please, redirect
me accordingly, if I've not picked the right one.

Where I could find the sources for the Mozilla's pushlog functionality?

http://hg.mozilla.org/mozilla-central/pushloghtml

Are they based on the SonicHg extension (the UI doesn't seem exactly
the same)?

http://mercurial.selenic.com/wiki/SonicHgExtension
http://kenai.com/projects/sonichg/
http://sonichg.zspin.com/hgview.cgi/calc/pushlog

--
Stanimir

Tanner M. Young

unread,
May 25, 2010, 2:51:53 AM5/25/10
to
On 5/24/2010 4:46 PM, Stanimir Stamenkov wrote:
> I'm not sure I'm posting this to the right group - please, redirect me
> accordingly, if I've not picked the right one.
>
> Where I could find the sources for the Mozilla's pushlog functionality?
>
> http://hg.mozilla.org/mozilla-central/pushloghtml

http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/

>
> Are they based on the SonicHg extension (the UI doesn't seem exactly the
> same)?
>
> http://mercurial.selenic.com/wiki/SonicHgExtension
> http://kenai.com/projects/sonichg/
> http://sonichg.zspin.com/hgview.cgi/calc/pushlog
>

I don't know, but Markus Stange--who wrote it--would know.

Tanner M. Young

Stanimir Stamenkov

unread,
May 25, 2010, 4:58:39 PM5/25/10
to
Tue, 25 May 2010 00:51:53 -0600, /Tanner M. Young/:

> On 5/24/2010 4:46 PM, Stanimir Stamenkov wrote:
>
>> Where I could find the sources for the Mozilla's pushlog functionality?
>>
>> http://hg.mozilla.org/mozilla-central/pushloghtml
>
> http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/

I don't think we're talking about the same thing. I mean the sources
for the Mercurial hooks (or what does Mozilla use?) which record the
pushlog (that is, which known and authenticated user has pushed what
change sets, where the change sets may have any author) and then the
relevant web-interface parts which display it. Here's an example:

http://hg.mozilla.org/mozilla-central/pushloghtml/2

One can see the user "rsa...@mozilla.com" has pushed change set
23b20b0eb9f3 ("Merge tracemonkey to mozilla-central.") along with bunch
of others which authors are different people.

I don't think this has anything to do with tinderboxes and checking out
"tinderboxpushlog" I haven't found anything relevant. Could someone
elaborate more on this?

>> Are they based on the SonicHg extension (the UI doesn't seem exactly
>> the same)?
>>
>> http://mercurial.selenic.com/wiki/SonicHgExtension
>> http://kenai.com/projects/sonichg/
>> http://sonichg.zspin.com/hgview.cgi/calc/pushlog
>
> I don't know, but Markus Stange--who wrote it--would know.

--
Stanimir

Tanner M. Young

unread,
May 25, 2010, 5:44:43 PM5/25/10
to
On 5/25/2010 2:58 PM, Stanimir Stamenkov wrote:
> Tue, 25 May 2010 00:51:53 -0600, /Tanner M. Young/:
> I don't think we're talking about the same thing. I mean the sources for
> the Mercurial hooks (or what does Mozilla use?) which record the pushlog
> (that is, which known and authenticated user has pushed what change
> sets, where the change sets may have any author) and then the relevant
> web-interface parts which display it. Here's an example:
>
> http://hg.mozilla.org/mozilla-central/pushloghtml/2
>
> One can see the user "rsa...@mozilla.com" has pushed change set
> 23b20b0eb9f3 ("Merge tracemonkey to mozilla-central.") along with bunch
> of others which authors are different people.
>
> I don't think this has anything to do with tinderboxes and checking out
> "tinderboxpushlog" I haven't found anything relevant. Could someone
> elaborate more on this?
>

These links should be what you need

http://hg.mozilla.org/hgcustom/hghooks
http://hg.mozilla.org/hgcustom/pushlog
http://hg.mozilla.org/hgcustom/hg_templates

The first link is the set of hooks that Mozilla uses; the second creates
the pushlog; and the third is the hg templates for the pushlog and other
pages.

To trigger these hooks outside of mozilla's build system, add any of
these lines to your .hgrc file:

pretxnchangegroup.a_singlehead =
python:mozhghooks.single_head_per_branch.hook
pretxnchangegroup.a_tinderbox = python:mozhghooks.treeclosure.hook
pretxnchangegroup.z_linearhistory = python:mozhghooks.pushlog.log

If you want tinderbox hook integration for your own server, you will
need to update treeclosure.py in hghooks with your domain.

Tanner M. Young

Stanimir Stamenkov

unread,
May 25, 2010, 6:16:30 PM5/25/10
to
Tue, 25 May 2010 15:44:43 -0600, /Tanner M. Young/:

> These links should be what you need
>
> http://hg.mozilla.org/hgcustom/hghooks
> http://hg.mozilla.org/hgcustom/pushlog
> http://hg.mozilla.org/hgcustom/hg_templates
>
> The first link is the set of hooks that Mozilla uses; the second
> creates the pushlog; and the third is the hg templates for the pushlog
> and other pages.

Thanks a bunch. These look really more like it.

> To trigger these hooks outside of mozilla's build system, add any of
> these lines to your .hgrc file:
>
> pretxnchangegroup.a_singlehead =
> python:mozhghooks.single_head_per_branch.hook
> pretxnchangegroup.a_tinderbox = python:mozhghooks.treeclosure.hook
> pretxnchangegroup.z_linearhistory = python:mozhghooks.pushlog.log
>
> If you want tinderbox hook integration for your own server, you will
> need to update treeclosure.py in hghooks with your domain.

I'm really not familiar with the Mozilla's build system. I was looking
for such already implemented pushlog I could use with different project
setup and I was suggested to look at the SonicHg extension and the
Mozilla's pushlog. It would be nice to have this as Mercurial bundled
extension. If I get to understand the code sufficiently I may start
hacking on it.

--
Stanimir

Tanner M. Young

unread,
May 25, 2010, 7:32:43 PM5/25/10
to
On 5/25/2010 4:16 PM, Stanimir Stamenkov wrote:
> I'm really not familiar with the Mozilla's build system. I was looking
> for such already implemented pushlog I could use with different project
> setup and I was suggested to look at the SonicHg extension and the
> Mozilla's pushlog. It would be nice to have this as Mercurial bundled
> extension. If I get to understand the code sufficiently I may start
> hacking on it.

If you have any specific questions about the work-flow or build system,
feel free to ask. Also check https://developer.mozilla.org/ since it
has information on things like tinderbox, hg, and other tools that
Mozilla uses, and it often shows how the tools are used specifically by
Mozilla.

One page that might be of particular use is the Pushlog and Yahoo! Pipes
documentation:
https://developer.mozilla.org/en/Mercurial_FAQ/Filter_a_Mercurial_Changelog_feed_by_Pushlog_directory_paths

Tanner M. Young

0 new messages