[meld] Avoid single self-comparison in folder shallow comparison



commit 7fdf92e5f2b5fa497ca266d40d613edab6017a5e
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Feb 10 07:21:13 2013 +1000

    Avoid single self-comparison in folder shallow comparison

 meld/dirdiff.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 974a4ab..7bcfbb3 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -119,7 +119,7 @@ def _files_same(files, regexes, prefs):
 
     # Compare files superficially if the options tells us to
     if prefs.dirdiff_shallow_comparison:
-        if all(s.shallow_equal(stats[0], prefs) for s in stats):
+        if all(s.shallow_equal(stats[0], prefs) for s in stats[1:]):
             return DodgySame
         else:
             return Different


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]