[kompare] [Bug 341479] New: Wrong file paths when having partially common paths (but not equal)

hardmooth at gmail.com hardmooth at gmail.com
Tue Dec 2 08:09:11 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=341479

            Bug ID: 341479
           Summary: Wrong file paths when having partially common paths
                    (but not equal)
           Product: kompare
           Version: 4.1.1
          Platform: Debian stable
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: parser
          Assignee: kompare-devel at kde.org
          Reporter: hardmooth at gmail.com

Kompare sometimes parses file paths incorrectly.
This happens if two files have partially common paths, like:
> common/path_A/sub_folder/file.ext
> common/sub_folder/file.ext
Kompare will then place both files into
> common/path_A/sub_folder/file.ext
A diff file as minimal non-working example can be found below.

==START_OF_DIFF_FILE==
diff --git a/common/path_A/sub_folder/file.ext
b/common/path_A/sub_folder/file.ext
index f01e304..20f7773 100644
--- a/common/path_A/sub_folder/file.ext
+++ b/common/path_A/sub_folder/file.ext
@@ -1,6 +1,10 @@
-something left
+something right

 if(ORACLE_FOUND)

diff --git a/common/sub_folder/file.ext b/common/sub_folder/file.ext
index 6e32be5..9559da0 100644
--- a/common/sub_folder/file.ext
+++ b/common/sub_folder/file.ext
@@ -1,23 +1,27 @@
 # vim: ts=4:sw=4:cindent:expandtab

-something different left
+something different right
==END_OF_DIFF_FILE==

Reproducible: Always

Steps to Reproduce:
1. either open diff file from bash or compare two directories (as decribed in
"Details)


Actual Results:  
Kompare will place both files 'file.ext' into 
> common/path_A/sub_folder/file.ext
and none into 
> common/sub_folder/file.ext


Expected Results:  
The two files should be (one each) in 
> common/path_A/sub_folder/file.ext
> common/sub_folder/file.ext

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kompare-devel mailing list