maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabien (JIRA)" <>
Subject [jira] Created: (SCM-603) Blame command for Mercurial (HG) is partial
Date Wed, 02 Feb 2011 12:58:22 GMT
Blame command for Mercurial (HG) is partial

                 Key: SCM-603
             Project: Maven SCM
          Issue Type: Bug
          Components: maven-scm-provider-mercurial (hg)
    Affects Versions: 1.4, 1.3
            Reporter: Fabien
         Attachments: HG_blame_command.patch

I use blame command for Mercurial provider (HG) and there is this exception :

Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error inside systemOut parser
	at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
	at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(
	at org.apache.maven.scm.provider.hg.HgUtils.executeCmd(
	... 13 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(
	at org.apache.maven.scm.provider.hg.command.blame.HgBlameConsumer.doConsume(
	at org.apache.maven.scm.provider.hg.command.HgConsumer.consumeLine(
	at org.codehaus.plexus.util.cli.StreamPumper.consumeLine(

This exception seems to launch when a line is empty in source file.

On version 1.3, blame is partial and no exception is launched.

I propose a patch to fix this problem.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message