Mercurial Plugin

Name Mercurial Plugin
Version 0.3.7.0.7
Product Versions 3.6 - 3.7
Author(s) Matt Doar, Mihai Ibanescu
Homepage http://www.pobox.com/~doar
Price Free!
License GPLv2
IssueTracking Jira Mercurial Plugin (this is where to submit bugs or feature requests)
Download latest JAR https://svn.atlassian.com/svn/public/contrib/jira/mercurial-jira-plugin/releases/mercurial-jira-plugin-0.3.7.0.7.jar
Download Source svn co https://svn.atlassian.com/svn/public/contrib/jira/mercurial-jira-plugin
Browse Source http://svn.atlassian.com/fisheye/browse/public/contrib/jira/mercurial-jira-plugin

Description/Features

This plugin is based on the Subversion plugin and provides similar functionality for the Mercurial distributed version control tool. This plugin was developed at XenSource using Mercurial 0.9. The necessary files are available under the attachment tab.

NOTE: now that the files have been moved into the Atlassian Subversion server, don't use the attached release and source files

Usage

See README.txt from the source distribution.

The license/COPYING files are missing from the current distribution, but the source code is in fact under GPL, as noted as above.

Screenshots


Version History

  • 0.3.7.0.7 Matt Doar Updated version to reflect the name change of the plugin. No functionality changed in this release.
  • 0.3.7.0.6 Mihai Ibanescu: Modified some more, tested against Jira 3.7.1
  • 0.3.6.0.4 Mihai Ibanescu: Modified to work with Jira 3.6, tested against Jira 3.6.5.
  • 0.2 Matt Doar Support for multiple repositories added

Known Issues

Atlassian Developer Network JIRA (4 issues)
T Key Summary Assignee Reporter Pr Status Res Created Updated Due
Bug JHG-4 It does not work with branches. Matt Doar Schaaf, Martin Major Open UNRESOLVED Mar 31, 2008 Mar 31, 2008
Bug JHG-3 It does not index and doesn't display an indexing service. Matt Doar Schaaf, Martin Major Open UNRESOLVED Mar 31, 2008 Mar 31, 2008
Bug JHG-2 Not working with jira 3.12.2. Matt Doar Schaaf, Martin Major Open UNRESOLVED Mar 31, 2008 Mar 31, 2008
Task JHG-1 Update the JAR file to work with Jira 3.10 Matt Doar Sean Kelley Major Open UNRESOLVED Jan 29, 2008 Mar 29, 2008

Labels

 
  1. Sep 11, 2007

    Matt Doar says:

    Mail from Rob Schoening, who got the plugin working with Jira 3.10. I'll get rou...

    Mail from Rob Schoening, who got the plugin working with Jira 3.10. I'll get round to merging this into the Subversion repo soonish.

    The code in the ant script to download the dependencies was broken. I think atlassian moved their jars around or something. Here's change to build.xml that just takes the jars from the local installation, provided that you set the ant property "jira.webapp.dir" appropriately. It also deploys the jar.

    diff -r c07fa0db8aad build.xml
    --- a/build.xml Fri Aug 31 23:28:38 2007 -0700
    +++ b/build.xml Wed Sep 05 13:52:19 2007 -0700
    @@ -18,11 +18,17 @@
       </property>
       <property name="final.name" value=" atlassian-jira-mercurial-plugin-0.3.7.0.6">
       </property>
    +  <property name="jira.webapp.dir" value="../atlassian-jira-enterprise-3.10-standalone/atlassian-jira" />
    +
       <path id=" build.classpath">
         <fileset dir="${libdir}">
           <include name="**/*.jar">
           </include>
         </fileset>
    +       <fileset dir="${jira.webapp.dir }/WEB-INF/lib" >
    +               <include name="**/*.jar" />
    +       </fileset>
    +       <pathelement location="${jira.webapp.dir}/WEB-INF/classes" />
       </path>
       <target name="init" description="o Initializes some properties">
         <mkdir dir="${libdir}">
    @@ -59,6 +65,7 @@
       <target name="jar" description="o Create the jar" depends="compile,test">
         <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
         </jar>
    +       <copy todir="${ jira.webapp.dir}/WEB-INF/lib" file="${defaulttargetdir}/${final.name}.jar" />
       </target>
       <target name="clean" description="o Clean up the generated directories">
         <delete dir="${defaulttargetdir}">
    @@ -107,58 +114,11 @@
           </classpath>
         </javadoc>
       </target>
    -  <target name="get-deps" unless="noget" depends="init">
    -    <!--Proxy settings works only with a JDK 1.2 and higher.-->
    -
    -    <setproxy>
    -    </setproxy>
    -    <get dest="${libdir}/atlassian-jira-3.7.1.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/atlassian-jira/jars/atlassian-jira-3.7.1.jar">
    -    </get>
    -    <get dest="${libdir}/atlassian- plugins-0.3.17.jar" usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/atlassian-plugins/jars/atlassian-plugins-0.3.17.jar ">
    -    </get>
    -    <get dest="${libdir}/atlassian-core-2.4.9.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/atlassian-core/jars/atlassian-core-2.4.9.jar">
    -    </get>
    -    <get dest="${libdir}/atlassian-configurableobjects-0.4.21.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/atlassian-configurableobjects/jars/atlassian-configurableobjects-0.4.21.jar ">
    -    </get>
    -    <get dest="${libdir}/atlassian-ofbiz-0.3.6.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/atlassian-ofbiz/jars/atlassian-ofbiz-0.3.6.jar">
    -    </get>
    -    <get dest="${libdir}/osuser-1.0-dev-log4j-1.4jdk-7Dec05.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/osuser/jars/osuser-1.0-dev-log4j-1.4jdk-7Dec05.jar">
    -    </get>
    -    <get dest="${libdir}/log4j- 1.2.8.jar" usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/log4j/jars/log4j-1.2.8.jar">
    -    </get>
    -    <get dest="${libdir}/commons-collections-3.1.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/commons-collections/jars/commons-collections-3.1.jar">
    -    </get>
    -    <get dest="${libdir}/ofbcore-share-2.1.1.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/ofbcore/jars/ofbcore-share-2.1.1.jar">
    -    </get>
    -    <get dest="${libdir}/ofbcore- entity-2.1.1-atlassian-20Dec05.jar" usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/ofbcore/jars/ofbcore-entity-2.1.1-atlassian-20Dec05.jar ">
    -    </get>
    -    <get dest="${libdir}/ofbcore-service-2.1.1.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/ofbcore/jars/ofbcore-service-2.1.1.jar">
    -    </get>
    -    <get dest="${libdir}/ofbcore-extutil-2.1.1.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/ofbcore/jars/ofbcore-extutil-2.1.1.jar">
    -    </get>
    -    <get dest="${libdir}/webwork- 1.4.jar" usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/webwork/jars/webwork-1.4.jar">
    -    </get>
    -    <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/junit/jars/junit-3.8.1.jar ">
    -    </get>
    -    <get dest="${libdir}/jmock-1.0.1.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/jmock/jars/jmock-1.0.1.jar">
    -    </get>
    -    <get dest="${libdir}/lucene-1.4.3.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/lucene/jars/lucene-1.4.3.jar">
    -    </get>
    -    <get dest="${libdir}/osworkflow-17Aug2004.jar " usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/osworkflow/jars/osworkflow-17Aug2004.jar ">
    -    </get>
    -    <get dest="${libdir}/propertyset-1.3.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/propertyset/jars/propertyset-1.3.jar">
    -    </get>
    -    <get dest="${libdir}/picocontainer-1.0.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/picocontainer/jars/picocontainer-1.0.jar">
    -    </get>
    -    <get dest="${libdir}/oscore- 2.2.6-dev-9Nov05.jar" usetimestamp="true" ignoreerrors="true" src="http://repository.atlassian.com/oscore/jars/oscore-2.2.6-dev-9Nov05.jar ">
    -    </get>
    -    <get dest="${libdir}/commons-lang-2.0.jar" usetimestamp="true" ignoreerrors="true" src=" http://repository.atlassian.com/commons-lang/jars/commons-lang-2.0.jar">
    -    </get>
    -  </target>
    +  <target name="get-deps" unless="noget" depends="init" />
       <target name="install-maven">
         <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${repo}/maven/maven-install-latest.jar">
         </get>
         <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar">
         </unjar>
       </target>
    -</project>
    \ No newline at end of file
    +</project>
    diff -r c07fa0db8aad src/java/com/xensource/jira/plugin/ext/mercurial/revisions/RevisionIndexService.java
    --- a/src/java/com/xensource/jira/plugin/ext/mercurial/revisions/RevisionIndexService.java      Fri Aug 31 23:28:38 2007 -0700
    +++ b/src/java/com/xensource/jira/plugin/ext/mercurial/revisions/RevisionIndexService.java      Wed Sep 05 13:52:19 2007 -0700
    @@ -47,7 +47,7 @@ public class RevisionIndexService extend
     
         public static void install() throws Exception
         {
    -        if (getServiceManager().getServiceWithName(REVISION_INDEX_SERVICE_NAME) != null)
    +        if (getServiceManager().getServiceWithName(REVISION_INDEX_SERVICE_NAME) == null)
             {
                 getServiceManager().addService(REVISION_INDEX_SERVICE_NAME,
                     RevisionIndexService.class.getName(),