After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 131232 - Let the recursivity of directory diffs be customizable
Let the recursivity of directory diffs be customizable
Status: RESOLVED OBSOLETE
Product: meld
Classification: Other
Component: dirdiff
0.9.x
Other All
: Normal enhancement
: ---
Assigned To: Stephen Kennedy
Stephen Kennedy
Depends on:
Blocks:
 
 
Reported: 2004-01-12 14:45 UTC by Fred Riss
Modified: 2017-12-13 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fred Riss 2004-01-12 14:45:06 UTC
[ Copy pasting from sourceforge tracker ]

 The directory selection dialog for directory diffs
could include a counter representing the recursivity of
the diff.

Currently it's very hard to diff the base of a very
deep tree because of the time scanning all the subtrees
takes.

============ Reply from steve ==============

Good idea - but I think it would be better to make the scanning
more intelligent than to specify some arbitrary limit.

How about: scan breadth first instead of depth first
Except if a user opens a directory then it is scanned
immediately.
Comment 1 Fred Riss 2004-01-12 15:17:55 UTC
I think improving the scanning algorithm like you say is a good thing
and would maybe solve the problem when you do recursive diffs.
Nevertheless, I would really love to have an option to not recurse in
subdirectories.
Comment 2 Mantas Kriaučiūnas 2004-06-16 22:47:14 UTC
Also it would be nice to have an option "Don't follow symlink", should I report
another bug ?
Comment 3 Stephen Kennedy 2004-06-17 08:08:28 UTC
Yes, please open a separate bug.
Comment 4 Björn Stenberg 2009-06-17 13:40:01 UTC
I too would like an option to disable recursive compare.

I have a tree with literally hundreds of thousands of files. I need to be able to compare a single level of this tree. Comparing the whole huge tree structure is useless, not to mention takes hours.
Comment 5 Stephen Kennedy 2009-07-11 13:14:02 UTC
If you'd like to have a look at this, see dirdiff.py:1035
The line containing todo.append is where the recursion is performed.
I suppose you could examine the number of "/" in the name at this point.
Comment 6 nh2 2010-05-03 23:41:38 UTC
I'm working on a patch.
Functionality and UI is there, but I have no idea on where to save the max. recursion depth and on how to pass that the way down to _search_recursively_iter.
Comment 7 fcodvpt 2017-01-18 16:20:32 UTC
I would also really really appreciate an option to disable recursive diff for directory comparison. As proposed above, with this option enabled, a directory is scanned for diff only when it is opened.

Collapsing subfolders takes a long time when you just want to compare a known subset of the tree, and you have to do it again when you change an option (do not display identical files e.g).

See also bug 759683, bug 776828.
Comment 8 GNOME Infrastructure Team 2017-12-13 18:43:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/2.