You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/08/09 11:07:57 UTC

DO NOT REPLY [Bug 11583] New: - cvschangelog-problem with previous-revision-information

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11583>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11583

cvschangelog-problem with previous-revision-information

           Summary: cvschangelog-problem with previous-revision-information
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: m.mehrmann@fernuni-hagen.de


The cvschangelog-task generates for each file some entries with information 
about the revision and the previous revision, if there are more than one entry 
for the file in the cvs log output. This information is then written in the 
xml-file.

Unfortunately there are dirty effects: the membervariable "m_previousRevision" 
in ChangeLogParser.java isn't reset when moving forward to the next file. So the 
information in these entries is sometimes...uhm...a kind of weird...
(revision: 1.3, prevrevision: 1.17 ... cannot be under normal circumstances :-)

Example cvs log that generates this effect:

RCS file: /.../SixteenTons.java,v
Working file: .../automated/SixteenTons.java
{...}
description:
----------------------------
revision 1.2
date: 2002/08/06 14:57:41;  author: gisht;  state: Exp;  lines: +5 -3
{...comment...}
----------------------------
revision 1.1
date: 2002/08/01 16:48:43;  author: gisht;  state: Exp;
{...comment...}
=============================================================================
RCS file: /.../TestClient.jpr,v
Working file: .../TestClient.jpr
{...}
description:
----------------------------
revision 1.17
date: 2002/08/01 14:48:18;  author: gisem;  state: Exp;  lines: +8 -4
TestClient f�r ExternalForms erweitert.
=============================================================================

So, for the file "SixteenTons.java" there are two entries:
1) rev: 1.2   prevrev: 1.1
2) rev: 1.1   prevrev: 1.1

And for the file "TestClient.jpr" there is the following entry:
1) rev: 1.17  prevrev: 1.1  ?!??

That is not really the wanted effect, isn't it?

I have made following change:

in ChangeLogParser.java (rev:1.14) I have added following line
in line 222:

222:        m_previousRevision = null;

Then it works as I expected.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>