svn: Files added in revision 1 can have wrong added/removed linecounts

XMLWordPrintable

    • Type: Bug
    • Resolution: Timed out
    • Priority: Low
    • N/A
    • Affects Version/s: 3.0.0, 3.1.0, 3.2.0, 3.3.0
    • Component/s: None
    • Severity 3 - Minor
    • 1

      If a repository has a path set, files added in revision 1 can have their added/removed lines set correctly.

      HTR:

      1. Take the repo from FECRU-3452 (https://jira.atlassian.com/secure/attachment/92774/branchtest.zip)
      2. Unpack, add to fecru, use path 'our'
      3. Index
      4. Line count in revision 1 for is wrong:
      3.0 2.10

      This is caused by svn returning a full path (with us/) when doing

      svn diff -r 0:1 file:///home/lukpater/tmp/repos/branchtest/us@1
      Index: us/trunk/b
      ===================================================================
      --- us/trunk/b	(revision 0)
      +++ us/trunk/b	(revision 1)
      @@ -0,0 +1,3 @@
      +1
      +2
      +3
      

      and the path not being found in Svn2InfillProcessor.processDiffPaths() (combined diff path. It seems to work fine when doing a file-by-file diff.

            Assignee:
            Unassigned
            Reporter:
            Lukasz Pater
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: