Skip to content

Parsing SVN Diff skips one class #27

@javydreamercsw

Description

@javydreamercsw

I have a svn diff where parsing seems to miss the start of the second class.

Index: MyClass1.java

--- MyClass1.java (nonexistent)
+++ MyClass1.java (working copy)
@@ -0,0 +1,30 @@
+/*

    • Copyright 2018 XXX
    • All Rights Reserved
  • */

+package com.xxx;
+
+/**

  • */
    +public class MyClass1
    +{
  • @OverRide
  • public boolean equals(Object obj)
  • {
  • return super.equals(obj);
  • }
  • @OverRide
  • public int hashCode()
  • {
  • return super.hashCode();
  • }
  • @OverRide
  • public String toString()
  • {
  • return super.toString();
  • }
    +}
    Index: MyClass2.java
    ===================================================================
    --- MyClass2.java (nonexistent)
    +++ MyClass2.java (working copy)
    @@ -0,0 +1,30 @@
    +/*
    • Copyright 2018 xxx
    • All Rights Reserved
  • */

+package com.xxx;
+
+/**

  • */
    +public class MyClass2
    +{
  • @OverRide
  • public boolean equals(Object obj)
  • {
  • return super.equals(obj);
  • }
  • @OverRide
  • public int hashCode()
  • {
  • return super.hashCode();
  • }
  • @OverRide
  • public String toString()
  • {
  • return super.toString();
  • }
    +}

When parsed the first hunk ends on the line:

+++ MyClass2.java (working copy)

Instead of the Index one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions