Changeset - cd25fa6f4008
[Not reviewed]
beta
0 1 0
Mads Kiilerich - 13 years ago 2012-12-12 18:13:31
madski@unity3d.com
Grafted from: bcfed1035796
remove unused function get_repo_paths

It should probably handle removed repositories somehow if it should live on.
1 file changed with 0 insertions and 15 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/utils/helpers.py
Show inline comments
 
@@ -96,21 +96,6 @@ def get_scms_for_path(path):
 
    return result
 

	
 

	
 
def get_repo_paths(path):
 
    """
 
    Returns path's subdirectories which seems to be a repository.
 
    """
 
    repo_paths = []
 
    dirnames = (os.path.abspath(dirname) for dirname in os.listdir(path))
 
    for dirname in dirnames:
 
        try:
 
            get_scm(dirname)
 
            repo_paths.append(dirname)
 
        except VCSError:
 
            pass
 
    return repo_paths
 

	
 

	
 
def run_command(cmd, *args):
 
    """
 
    Runs command on the system with given ``args``.
0 comments (0 inline, 0 general)