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
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
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
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
> 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
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