This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
First, not sure what the proper component and subcomponent is, sorry about that. Please, add branch to emails with hg commits. Jesse could be able to help you with it. Thanks.
Specifically, notify_hg.py ought to mention the branch somewhere. Probably {branch} can be used somewhere in single_template and multiple_template. (Not sure if we ever use multiple_template; perhaps not.) By the way, {baseurl}{webroot}?cmd=changeset;node={node|short} is an awkward syntax. {baseurl}{webroot}/rev/{node|short} is more commonly used.
Any progress, Petře? Thanks.
I have committed the following change http://hg.netbeans.org/nb-hooks/rev/3b7ee3d48642 into the http://hg.netbeans.org/nb-hooks/ repository and have updated the local clone at hg.netbenas.org. I expect that the local clone data are used for the e-mails generation. Please, let me know if something has changed in the e-mails generation.
(In reply to comment #3) > http://hg.netbeans.org/nb-hooks/rev/3b7ee3d48642 {webroot}{project}{branch} will look pretty bad, I think: "[hg] main-silverdefault: whatever" (Not sure what {project} is for but it never seems to be substituted with anything.) Better remove {branch} from the subject line. Could go into the body. I tried to improve it in nb-hooks #798e57ad4189.
I have updated the local clone by Jesse's change.
Not working. {branch} resolves to the empty string even for commits on a named branch.
(In reply to comment #6) > Not working. {branch} resolves to the empty string even for commits on a named > branch. Weird since from command line, template '{branch}' works for me...
Right, 'hg help templating' documents it. Either the templating functions are called differently from the notify hook, or the server is running an ancient version of Mercurial that lacks this parameter.
An another try to fix: http://hg.netbeans.org/nb-hooks/rev/5d3bb7e602b3
(In reply to comment #9) > An another try to fix: http://hg.netbeans.org/nb-hooks/rev/5d3bb7e602b3 IMHO it won't help; what version of Mercurial is on the server?
(In reply to comment #10) > what version of Mercurial is on the server? Mercurial Distributed SCM (version 1.4.3)
(In reply to comment #11) > Mercurial Distributed SCM (version 1.4.3) This version is too old since 1.4.3 was released on 2010-02-01 [1] but the 'branch' keyword was implemented on 2010-12-13 [2]. But, if you have a look at the commit message in [2], maybe we could use: {branches|nonempty} Can you try it, please? Thanks. [1] http://mercurial.selenic.com/wiki/WhatsNew/Archive#A1.4.3_.282010-02-01.29 [2] http://selenic.com/repo/hg/rev/d79fdff55627
Is it what you wanted? http://hg.netbeans.org/nb-hooks/rev/3101141d5868
(In reply to comment #13) > Is it what you wanted? Yes, we can try it but still, I think that newer version of Mercurial would solve this issue much easier. Thanks.