Comments (5)
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.
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.
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.
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.
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)
- SVN Diff - Undefined Offset: 0 - UnifiedDiffTokenizer.php line 258 HOT 1
- PHP 5.6 Support HOT 2
- getNewLineNo() and "No newline at end of file" HOT 4
- EOL CRLF in UnifiedDiffTokenizer.php causes an error with preg_match() HOT 7
- Handle git diffs where filenames don't have a/ & b/ prefixes
- PHP 8 Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diff-parser.