[meld] dirdiff: Add comparison shortcut when files are actually the same path



commit de177e745c431ac94afb2710e131b926af694f1d
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Thu Jan 8 08:21:01 2015 +1000

    dirdiff: Add comparison shortcut when files are actually the same path

 meld/dirdiff.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index d49b066..954bdd8 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -111,8 +111,7 @@ def _files_same(files, regexes, comparison_args):
       FileError: There was a problem reading one or more of the files
     """
 
-    # One file is the same as itself
-    if len(files) < 2:
+    if all_same(files):
         return Same
 
     files = tuple(files)


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