Bug 162949 - Files present in only one directory should be handled as such when comparing directories (Wishlist)
Summary: Files present in only one directory should be handled as such when comparing ...
Status: REOPENED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 3.4
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-31 16:45 UTC by Syam
Modified: 2015-06-30 01:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Syam 2008-05-31 16:45:26 UTC
Version:           3.4 (using KDE 4.0.4)
Installed from:    Fedora RPMs
OS:                Linux

When comparing two directories, files which appear in only one of the directories are treated as 'present as empty' in the other directory (diff option: -N, --new-file). This behaviour is annoying and it actually gives wrong information.
If a file's only present in one of the directories, it is better shown as 'only in <dir>'.
Comment 1 Kevin Kofler 2008-06-28 06:58:00 UTC
Confirming as a valid wish.
Comment 2 Syam 2008-11-12 03:38:35 UTC
@Kevin
Will the option make it in the 4.2 version? I'm not a KDE programmer, but I'll see if I can work out a code draft for this (not very soon, though).
And, since the current scheme gives wrong information (the presence of a bogus blank file), I'd rather call this a bug than a wish.
Thanks..
Comment 3 Kevin Kofler 2008-11-12 11:32:57 UTC
I really don't see how this is a bug, it's just a missing feature.

In any case, this is not implemented in 4.2 trunk yet, and we're already in soft feature freeze and soon in hard feature freeze, so I don't think it will make 4.2 even if you write the patch now (unless you can convince the release team that it is a bug).
Comment 4 Syam 2008-11-12 12:12:51 UTC
I 'called' it a bug because for a user who doesn't check the directory contents first, it'll look like a blank file is present in a directory.
We use (and love) WinMerge a lot in office, and we are moving towards Linux and kompare is kind of one of the killer apps. Thanks for the support.
Comment 5 Otto Bruggeman 2009-03-11 23:21:43 UTC
SVN commit 938468 by bruggie:

GUI
FEATURE
BUG: 171705 The -N option is now configurable on the Diff -> Options tab in the settings.
BUG: 162949 Same here, look for this option. 

This feature was already implemented but without a GUI item to represent
it, that is why the patch is so small.


 M  +8 -0      diffpage.cpp  
 M  +1 -0      diffpage.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=938468
Comment 6 Syam 2009-03-12 02:48:17 UTC
Thanks a lot..
Comment 7 Syam 2015-06-30 01:26:41 UTC
Apologies for not testing this earlier.

Testing with Kompare v4.1.3 (on KDE Development Platform 4.14.9).
If 'Treat new files as empty' option is disabled, then files missing from one directory are simply not displayed in the 'changed files list'. This is worse than the original. This gives an impression that those files have not changed. Files present in only one directory should be marked as such in the changes list. Perhaps a "<deleted>" or similar text in the file list will do.