Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-184

git-webrev exception on deleted files in hg

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libraries
    • Labels:
      None

      Description

      git webrev complains:
      Caused by: java.io.IOException: Num headers (10) differ from num hunks (9)

      The mercurial repo has a single MQ changeset with a renamed file.
      The repo is: valhalla; branch: lworld

      % git webrev -m -N -C -o /tmp/webrev-rr -r 87b84b7634db

      Adding a printf showed the command to hg as:

      [hg, --config, extensions.diff-git-raw=/tmp/ext1033854710669087068.py, diff-git-raw, --patch, 87b84b7634db6d19705136d64fd66578853d2775, --files=]


      Stack Trace:
      Exception in thread "main" java.io.IOException:
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.hg.HgRepository.diff(HgRepository.java:777)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.hg.HgRepository.diff(HgRepository.java:746)
      at org.openjdk.skara.webrev/org.openjdk.skara.webrev.Webrev$Builder.generate(Webrev.java:124)
      at org.openjdk.skara.webrev/org.openjdk.skara.webrev.Webrev$Builder.generate(Webrev.java:112)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitWebrev.generate(GitWebrev.java:278)
      at org.openjdk.skara.args/org.openjdk.skara.args.Command.main(Command.java:54)
      at org.openjdk.skara.args/org.openjdk.skara.args.MultiCommandParser.lambda$parse$2(MultiCommandParser.java:64)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitWebrev.main(GitWebrev.java:330)
      at org.openjdk.skara.cli/org.openjdk.skara.cli.GitSkara.main(GitSkara.java:127)
      at com.oracle.skara.cli/com.oracle.skara.cli.GitSkara.main(GitSkara.java:46)
      Caused by: java.io.IOException: Num headers (10) differ from num hunks (9)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.tools.UnifiedDiffParser.parseGitRaw(UnifiedDiffParser.java:213)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.tools.UnifiedDiffParser.parseGitRaw(UnifiedDiffParser.java:203)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.tools.UnifiedDiffParser.parseGitRaw(UnifiedDiffParser.java:195)
      at org.openjdk.skara.vcs/org.openjdk.skara.vcs.hg.HgRepository.diff(HgRepository.java:773)


      The changeset is available on request.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: