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



commit 5f82d2a6dc2aaad3ebcc3bd3829e3ed5f1cf1779
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]