You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ringo De Smet <ri...@gmail.com> on 2011/02/14 16:21:22 UTC

Maven HG provider: changelog returning revision hash instead of number?

Hello,

I am re-using the Maven HG provider in a project where I need to
process all commits. I have a problem with the changelog command.

Mercurial reports the revision under the following form:
996:dfec0866dab97b8b5b949a6b16a70181a90deeb0
The first part is a number which is only valid for the locally cloned
repository. The revision hash thereafter is an ID that identifies the
commit for every user. The latter should be used to report on specific
commits.

However, looking at the code (1), line 177, it is the first part that
is set as the revision in the Mercurial ChangeSet object.

(1) http://svn.apache.org/viewvc/maven/scm/tags/maven-scm-1.4/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java?view=markup

I would like to change this for version 1.5, but would like to know if
anyone/anything is depending on this number instead of the hash...

Ringo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Maven HG provider: changelog returning revision hash instead of number?

Posted by Olivier Lamy <ol...@apache.org>.
Hello,
Patch applied
Thanks !

-- 
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy

2011/2/14 Ringo De Smet <ri...@gmail.com>:
> Hello,
>
> I am re-using the Maven HG provider in a project where I need to
> process all commits. I have a problem with the changelog command.
>
> Mercurial reports the revision under the following form:
> 996:dfec0866dab97b8b5b949a6b16a70181a90deeb0
> The first part is a number which is only valid for the locally cloned
> repository. The revision hash thereafter is an ID that identifies the
> commit for every user. The latter should be used to report on specific
> commits.
>
> However, looking at the code (1), line 177, it is the first part that
> is set as the revision in the Mercurial ChangeSet object.
>
> (1) http://svn.apache.org/viewvc/maven/scm/tags/maven-scm-1.4/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/changelog/HgChangeLogConsumer.java?view=markup
>
> I would like to change this for version 1.5, but would like to know if
> anyone/anything is depending on this number instead of the hash...
>
> Ringo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org