Git Product home page Git Product logo

Comments (5)

ptlis avatar ptlis commented on June 1, 2024

Hi Paul, thanks for the bug report.

Having generated some test diffs with SVN 1.8 and 1.9 I can replicate the 'revision x' => 'nonexistent' issue (with creations and deletions) in 1.9. Could you test this by switching the version to dev-master, which should have fixes for both cases.

On the other hand I was unable to find any problems in processing diffs from SVN 1.8 - it may be that the generated patches are too trivial to trigger the bug. If this is the case providing me with an example patch file would be the quickest way to narrow this down. If the only example you have is for something proprietary we could share the example privately and I'd be able to create an anonymised equivalent for testing purposes.

from diff-parser.

paulbriton avatar paulbriton commented on June 1, 2024

Thank's for your bug fix, it's working perfectly with SVN 1.9 !

Here is a diff generated with SVN 1.8. If you iterate over files and call the getOperation() method, you'll see that the only operation detected is changed.

from diff-parser.

ptlis avatar ptlis commented on June 1, 2024

I was able to replicate this bug using the patch you provided. Digging into this I identified some inconsistencies in how the library processed one line and mutli line file creations/deletions that seems to have been the cause for this.

Could you try again with the master branch and confirm that this fix is correct.

from diff-parser.

paulbriton avatar paulbriton commented on June 1, 2024

Everything seems to be OK on both SVN versions ! I'll let you know if I come across another issue.
Thank's a lot for your reactivity and your help !

from diff-parser.

ptlis avatar ptlis commented on June 1, 2024

No worries 👍

I've tagged a new release (0.6.0) so you can depend upon a stable release.

from diff-parser.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.