Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73

CVS changelog always shows edited files as added

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Postponed
    • Icon: Minor Minor
    • core
    • None
    • Platform: All, OS: All

      All modified files (trunk or branch) in a CVS changes list are shown as added,
      even when they really were modified. And as far as I can tell, files added on
      branches are shown as edits. Files added in trunk appear correctly as adds.
      Deletions in trunk also seem to be shown as adds.

      The problem seems to be in the change log generator, not Hudson's parser, since
      changelog.xml really shows things like:

      <entry>
      <date>...</date>
      <time>...</time>
      <author><![CDATA[...]]></author>
      <file>
      <name>.../X.java</name>
      <revision>1.1.2.9</revision>
      </file>
      <msg><![CDATA[...an edit; similar for a trunk commit...]]></msg>
      </entry>

      (note no <prevrevision>1.1.2.8</prevrevision>) or

      <entry>
      <date>...</date>
      <time>...</time>
      <author><![CDATA[...]]></author>
      <file>
      <name>.../X.java</name>
      <revision>1.1.2.1</revision>
      </file>
      <msg><![CDATA[...an add...]]></msg>
      </entry>
      <entry>
      <date>...same...</date>
      <time>...same...</time>
      <author><![CDATA[...same...]]></author>
      <file>
      <name>.../X.java</name>
      <revision>1.1</revision>
      <prevrevision>1.1.2.1</prevrevision>
      </file>
      <msg><![CDATA[branches: 1.1.2;
      file X.java was initially added on branch xxx.]]></msg>
      </entry>

      (note synthetic add message, and <revision> vs. <prevrevision> backwards)

      <entry>
      <date>...</date>
      <time>...</time>
      <author><![CDATA[...]]></author>
      <file>
      <name>.../X.java</name>
      <revision>1.2</revision>
      </file>
      <msg><![CDATA[...useless now...]]></msg>
      </entry>

      (note no metadata indicating this was a deletion of file rev 1.1)

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: