MANTIS LEGACY BUGS
-
[BUG#23] Do not fail if there are no changes
Category: [F010] PUSH
TO FIX
[hg] $ hg push http://ant4hg@pikacode.com/ant4hg/ant4hg-test
[hg] pushing to http://ant4hg@pikacode.com/ant4hg/ant4hg-test
[hg] searching for changes
[hg] aucun changement trouvé
BUILD FAILED
ant4hg/test/build.xml:72: FAIL TO EXECUTE : hg push http://ant4hg@pikacode.com/ant4hg/ant4hg-test (null returned: 1) -
[BUG#22] Log: [ERROR] null returned: 1
Category: [F006] COMMIT
Fixed in version: V0.8
There are only unknow files:
$ hg commit --message testStatusWithManyRepo1 /home/ben/tmp/tests-ant4hg-datas/f002/repo1
[au:antunit] nothing changed
[au:antunit]
[au:antunit] [ERROR] null returned: 1
[au:antunit] [ERROR] null returned: 1
[au:antunit] [ERROR] null returned: 1
-
[BUG#21] Log: [WARN] EXECUTABLE MAY NOT BE FOUND : hg
Category: [F002] STATUS
Fixed in version: V0.8
print once and update message -
[BUG#20] ant4hg.status.list is not re-initialized
Category: [F002] STATUS
Fixed in version: V0.8
When I ask the status of a repo with changes, the ${ant4hg.status.list} is correct. Immediately after this I ask the status of another repo without any changes, and ${ant4hg.status.list} is still filled with the previous status (from the first repo...).
When the second repo does have changes, everything works fine. -
[BUG#19] Make password optional due to Mercurial keyring extension
Category: [F009] PULL
Fixed in version: V0.8
Is it possible to make ant4hg work without supplying the password when calling the tasks? When I pull via TortoiseHg or commandline I don't need to supply my password always due to the keyring extension (http://mercurial.selenic.com/wiki/KeyringExtension) which stores my password.
I am not sure that if that issue https://sourceforge.net/apps/mantisbt/ant4hg/view.php?id=12 is related or not. -
[BUG#18] Ant4hg log fails on non-english Linux and Mac
Category: [F003] LOG
Fixed in version: V0.8
I'm using ant4hg within Audiveris project. Audiveris' build.xml uses ant4hg for retrieving mercurial release information via "hg log -rtip" as follows:
<taskdef name="hg"
classpathref="tools.classpath"
classname="net.sourceforge.ant4hg.taskdefs.HgTask"/>
<hg cmd="log" dir="${basedir}">
<arg value="-rtip"/>
>/hg>
This task fails to obtain logs on non-english Linux and Mac and displays the following error message:
-hg-tip:
[hg] $ hg log --rev tip
[hg] NO LOGS, CHECK COMMAND LINE
[hg] at net.sourceforge.ant4hg.consumers.LogConsumer.postConsume(LogConsumer.java:97)
[hg] at net.sourceforge.ant4x.consumers.Consumer.run(Consumer.java:146)
This happens due to the fact that Mercurial outputs its logs depending on the system's language. In my case, it's german. Here is an example output of "hg log -rtip" on my machine:
Änderung: 3327:307f9fa397ee
Marke: tip
Nutzer: hbitteur
Datum: Thu Jan 24 11:38:06 2013 +0100
Zusammenfassung: Upgraded to latest ant4hg building tool
Ant4hg fails to parse this log because it expects the tags to be in english. Switching the system's language to "english" cause ant4hg work as expected!
I suggest to call mercurial on Linux from inside ant4hg by prefixing it with LANGUAGE=en to ensure that the logs are always in the desired language:
LANGUAGE=en hg log -rtip:
changeset: 3327:307f9fa397ee
tag: tip
user: hbitteur
date: Thu Jan 24 11:38:06 2013 +0100
summary: Upgraded to latest ant4hg building tool -
[BUG#17] Built-in ant version 1.7.1?
Category: PACKAGING
Fixed in version: V0.8
After installing the 0.8 jar in my ant libpath my ant 1.8.3 claims to be "1.7.1".
Is there a version of ant 1.7.1 built-in?
-
[BUG#16] message printed twice if destination already exist
Category: [F008] CLONE
TO FIX
checkout-findext:
[hg] [ERROR] DESTINATION ALREADY UNDER VERSION : findext
[hg] [ERROR] DESTINATION ALREADY UNDER VERSION : findext
BUILD FAILED
/home/ben/OpenSource/hg.xml:13: DESTINATION ALREADY UNDER VERSION : findext -
[BUG#15] Exception when destination doesnot exist
Category: [F008] CLONE
TO FIX
[hg] [ERROR] java.io.FileNotFoundException: DIRECTORY NOT FOUND : /home/ben/OpenSource/findext
BUILD FAILED
/home/ben/OpenSource/hg.xml:12: java.io.FileNotFoundException: DIRECTORY NOT FOUND : /home/ben/OpenSource/findext
at net.sourceforge.ant4hg.util.UrlBuilder.getUrl(UrlBuilder.java:72)
at net.sourceforge.ant4hg.taskdefs.CloneTask.initDestination(CloneTask.java:169)
at net.sourceforge.ant4hg.taskdefs.CloneTask.initCommandLine(CloneTask.java:102)
at net.sourceforge.ant4x.taskdefs.CoreTask.execute(CoreTask.java:372)
at net.sourceforge.ant4x.taskdefs.CoreTask.execute(CoreTask.java:381)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
-
[BUG#14] Need "failonerror=false" support or ignore 0 files in push
Category: [F010] PUSH
Fixed in version: V0.8
We have an automated build (Jenkins) which, when a test project completes successfully, pushes upstream.
I used to do this using the shell, but this wasn't cross platform, so I found ant4hg.
The trouble is if a build is triggered by a parent project (and hence no files are actually changed):
push:
[hg] $ hg push https://bitbucket.org/xxxxx/com.xxxxx.yyyyy/
[hg] pushing to https://bitbucket.org/xxxxx/com.xxxxx.yyyyy/
[hg] searching for changes
[hg] no changes found
[hg] Result: 1
[hg] [ERROR] FAIL TO EXECUTE : hg push https://bitbucket.org/xxxxx/com.xxxxx.yyyyy/ (1)
BUILD FAILED -
[BUG#13] Unable to push, hg > abort: http authorization required
Category: [F010] PUSH
TO FIX
I'm trying to push a change and it doesn't work. I tried to use the command as specified in the documentation:
<hg cmd="push" dir=".">
<auth user="${hg.user}" password="${hg.password}" />
>/hg>
But I get:
$ hg push
pushing to https://javydreamercsw@bitbucket.org/javydreamercsw/simple-marauroa-rcp
pushing subrepo Card Game Interface to https://javydreamercsw@bitbucket.org/javydreamercsw/card-game-interface
searching for changes
no changes found
pushing subrepo Simple Marauroa Java to https://bitbucket.org/javydreamercsw/simple-marauroa-java
searching for changes
no changes found
pushing subrepo jWrestling to https://bitbucket.org/javydreamercsw/jwrestling
searching for changes
no changes found
searching for changes
[ERROR] hg > abort: http authorization required
Result: 255
[ERROR] FAIL TO EXECUTE : hg push (255)
Z:\NetBeans\Simple Marauroa\Marauroa Application Manager\build.xml:680: FAIL TO EXECUTE : hg push (255)
If I do it from NetBeans and/or TortoisHg it works. I thought I provided the wrong credentials but I know they are correct.
Previous to that command I do a commit and I get this output:
$ hg commit --include **/*.mf --user ***** --message "Update versions for dailybuilds" Z:\NetBeans\Simple Marauroa\Marauroa Application Manager
I pass the same user to the push command adding the correct password as well.
Any ideas? -
[BUG#12] Use of extensions
Category: PACKAGING
TO FIX
Hi!
Would it be possible in any way, to call or execute custom HG extensions in ANT4HG?
Being able to use extensions like this, https://bitbucket.org/albert_brand/hgexportfiles/wiki/Home, would be the best thing ever since running water! -
[BUG#11] Cannot check out new (+1.0) repos
Category: [F008] CLONE
Fixed in version: V0.8
Hi,
I get the "abort: requirement 'dotencode' not supported!" error when trying to check out (clone) repos which have been created on a quite new version of mercurial.
It would be really sweet to get around this issue. More info can be found here: http://mercurial.selenic.com/wiki/RequiresFile
-
[BUG#10] hg log does not set properties
Category: [F003] LOG
Fixed in version: V0.8
When executing the hg log example in the documentation:
<hg cmd="log" dir="/my/rootdirectory/dir/to/show" >
<arg value="-rtip"/>
>/hg>
<echo message="==========================" />
<echo message="revision = ${ant4hg.log.revision}" />
<echo message="changeset = ${ant4hg.log.changeset}" />
<echo message="tag = ${ant4hg.log.tag}" />
<echo message="user = ${ant4hg.log.user}" />
<echo message="date = ${ant4hg.log.date}" />
<echo message="summary = ${ant4hg.log.summary}" />
This prints out:
[hg] $ hg log -rtip /home/xxx/src/hg/9_0
[hg] branch: 9_0
[hg] tag: tip
[hg] user: xxxx
[hg] date: Tue Nov 09 12:46:44 2010 -0500
[hg] summary: CommentsForMyStuff
[echo] ==========================
[echo] revision = ${ant4hg.log.revision}
[echo] changeset = ${ant4hg.log.changeset}
[echo] tag = ${ant4hg.log.tag}
[echo] user = ${ant4hg.log.user}
[echo] date = ${ant4hg.log.date}
[echo] summary = ${ant4hg.log.summary}
So, somehow the properties inside of the log task are not getting set properly because their values are not being printed out.
Below is my system information:
# ant -version
Apache Ant version 1.8.1 compiled on April 30 2010
# hg --version
Mercurial Distributed SCM (version 1.5.4)
# java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)
Please let me know if i can be of further help, or if any another information would be helpful.
-
[BUG#9] Varriables ant4hg.log* is not setted after executing hg task.
Category: [F003] LOG
Fixed in version: V0.8
First, i read the documentation here http://ant4hg.free.fr/specifications.html#functionality-log .
Second, write simple ant scripts, after reading example, but it does not work.
My script file you can see in attachement.
If you run this file in repository, you can see that variable ant4hg.log.revision is not set. Why?
-
[BUG#8] hg clone ssh://... fail to catch ssh stream
Category: [F008] CLONE
TO FIX
hg clone command use a third party tool : ssh.exe.
It launches it using 'cmd /c ssh'. Therefore, it's not possible to get ssh input/output stream. -
[BUG#7] commons-cli dependency in command line
Category: PACKAGING
TO FIX
ant4hg depends on commons-cli.jar instead of commons-cli-1.2.jar.
Therefore, commons-cli have to be renames in apache-ant lib directory. -
[BUG#6] Look for hg executable in smarter way on Windows
Category: [F001] INIT
Fixed in version: V0.05
http://hg.netbeans.org/core-main/raw-file/tip/nbbuild/antsrc/org/netbeans/nbbuild/HgExec.java
has a richer algorithm than HgTask.prepareExec for finding an 'hg' executable, since Windows is bad at forking things due to DOS legacy. -
[BUG#5] Fix source code warnings
Category: PACKAGING
TO FIX
Unused imports, varargs warnings (pointing up excessively complicated code), @Override. -
[BUG#4] Fix svn:ignore
Category: PACKAGING
Fixed in version: V0.07
Based on what was created in my checkout from various targets. May need more. -
[BUG#3] Be more precise in build.xml
Category: PACKAGING
Fixed in version: V0.05
Index: build.xml
===================================================================
--- build.xml (revision 56)
+++ build.xml (working copy)
@@ -5,7 +5,7 @@
<target name="compile" description="Compile classes">
<mkdir dir="${build.dir}" />
- <javac srcdir="src" destdir="${build.dir}">
+ <javac srcdir="src" destdir="${build.dir}" includeantruntime="false" source="1.5">
<include name="net/sourceforge/ant4hg/**" />
<classpath>
<pathelement location="lib/ant.jar" />
-
[BUG#2] missing build.xml
Category: PACKAGING
Fixed in version: V0.04
Add build.xml in the package distribution -
[BUG#1] pom.xml
Category: PACKAGING
Fixed in version: V0.8
Add maven script