maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1072610 - /maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java
Date Sun, 20 Feb 2011 15:11:18 GMT
Author: olamy
Date: Sun Feb 20 15:11:18 2011
New Revision: 1072610

URL: http://svn.apache.org/viewvc?rev=1072610&view=rev
Log:
[SCM-609] Mercurial SCM provider reports revision number instead of revision hash in changelog
command
Submitted by Ringo De Smet

Modified:
    maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java

Modified: maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java?rev=1072610&r1=1072609&r2=1072610&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java
(original)
+++ maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java
Sun Feb 20 15:11:18 2011
@@ -174,9 +174,8 @@ public class HgChangeLogConsumer
         {
             tmpLine = line.substring( REVNO_TAG.length() );
             tmpLine = tmpLine.trim();
-            currentRevision = tmpLine;
-            String revision = currentRevision.substring( 0, currentRevision.indexOf( ':'
) );
-            currentChange.setRevision( revision );
+            currentRevision = tmpLine.substring( tmpLine.indexOf( ':' ) + 1 );
+            currentChange.setRevision( currentRevision );
 
         }
         else if ( line.startsWith( TAG_TAG ) )



Mime
View raw message