Jenkins/Hudson job push changes to Mercurial
===

I have a Jenkins/Hudson that increase some version numbers of some modules in preparation to publish a NetBeans update center to Sourceforge. I'm trying to push those changes into the repository using ant4g ant task and I'm having some issues. here's that part of the task relevant to this:

        <change files here>
        <hg cmd="commit" dir="." message="${message}" user="${hg.user}">
            <dirset dir="./">
                <include name="**/*.mf"/>
            </dirset>
        </hg>
        <hg cmd="push" dir=".">
            <auth user="${hg.user}" password="${hg.password}" />
        </hg>

You can see the related bug [here][1]. Anyway, is there a better way to do this from Jenkins/Hudson? Thanks in advance!


  [1]: https://sourceforge.net/apps/mantisbt/ant4hg/view.php?id=13