add Repository.has_moved_to_git check
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 14 Jun 2010 14:18:45 +0000 (16:18 +0200)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Mon, 14 Jun 2010 14:18:45 +0000 (16:18 +0200)
module-tools.py

index ce2f90b..ac4deb6 100755 (executable)
@@ -232,6 +232,10 @@ class Repository:
             if self.repo.is_valid():
                 break
 
+    @classmethod
+    def has_moved_to_git(cls, remote):
+        return SvnRepository.remote_exists("%s/aaaa-has-moved-to-git")
+
     @classmethod
     def remote_exists(cls, remote):
         for repo in Repository.supported_repo_types: