| Summary: | kompare does not understand directory structures | ||
|---|---|---|---|
| Product: | [Applications] kompare | Reporter: | esigra |
| Component: | navigationpart | Assignee: | Kompare bugs <kompare-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bruggie, patrick.allaert |
| Priority: | NOR | ||
| Version First Reported In: | 3.4 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
I can confirm this on Ubuntu 7.04/Feisty with KDE 3.5.6, Kompare 3.4 *** This bug has been confirmed by popular vote. *** Just a guess; is the bug in kompare.h, constructRelativePath, where the comment says "Find a common root."? At least that comment sounds like it could have something to do with the faulty behaviour. *** Bug 159939 has been marked as a duplicate of this bug. *** Should be fixed in 4.2.1 and higher. |
Version: 3.4 (using KDE KDE 3.5.5) Installed from: Gentoo Packages OS: Linux Kompare does not understand directory structures. Reproduce with the following script: #! /bin/sh mkdir kompare-directory-bug && \ cd kompare-directory-bug && \ mkdir -p tree1/A && \ mkdir -p tree1/B && \ mkdir -p tree2/A && \ mkdir -p tree2/B && \ echo asdf > tree1/A/file && \ echo qwer > tree1/B/file && \ echo asef > tree2/A/file && \ echo qwdr > tree2/B/file && \ diff -rU2 tree1 tree2|kompare - cd ../kompare-directory-bug/.. && \ rm -r kompare-directory-bug Kompare shows: Source Folder Destination Folder [ ]tree1/A/ [ ]tree2/A/ └─[ ]tree1/ └─[ ]tree2/ └─[ ]B/ └─[]B/ Expected: Source Folder Destination Folder [ ]tree1/ [ ]tree2/ ├─[ ]A/ ├─[ ]A/ └─[ ]B/ └─[ ]B/