[meld] When checking for bzr repo, only use quick checks (closes bgo#641624)



commit 9f281f073a20f85611f650252272ae164dbb7d30
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Feb 6 07:42:16 2011 +1000

    When checking for bzr repo, only use quick checks (closes bgo#641624)
    
    'bzr check' checks the working tree, branch and repository. Since we're
    only running this to verify that the directory is in fact a bzr repo,
    we don't really need the full suite of checks. This commit changes to
    just performing tree and branch checks, for a considerable speedup on
    large repositories.
    
    Patch from Tristan Hill.

 meld/vc/bzr.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/vc/bzr.py b/meld/vc/bzr.py
index 777a74f..a54490e 100644
--- a/meld/vc/bzr.py
+++ b/meld/vc/bzr.py
@@ -67,7 +67,7 @@ class Vc(_vc.CachedVc):
     def resolved_command(self):
         return [self.CMD] + self.CMDARGS + ["resolve"]
     def valid_repo(self):
-        if _vc.call([self.CMD, "check"]):
+        if _vc.call([self.CMD, "check", "--tree", "--branch"]):
             return False
         else:
             return True



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