[meld/FossilFix] Fix reversed logic in Fossil repository detection (closes bgo#650074)



commit 1a3cb51116e81ca38f5f32184e49405e130de588
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri May 13 17:09:33 2011 +1000

    Fix reversed logic in Fossil repository detection (closes bgo#650074)

 meld/vc/fossil.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/vc/fossil.py b/meld/vc/fossil.py
index c74a514..8559ee6 100644
--- a/meld/vc/fossil.py
+++ b/meld/vc/fossil.py
@@ -71,7 +71,7 @@ class Vc(_vc.CachedVc):
     def check_repo_root(self, location):
         # Fossil uses a file -- not a directory
         for metafile in self.VC_METADATA:
-            if not os.path.isfile(os.path.join(location, metafile)):
+            if os.path.isfile(os.path.join(location, metafile)):
                 return location
         raise ValueError
 



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