make configuration more flexible and more readable
[mass-build.git] / vcs.py
diff --git a/vcs.py b/vcs.py
index 994f03b6edbb5cf03cd7cdb14704781eba81d514..8acb571aa161a4cb4df82d2a237d2cd77deb0521 100644 (file)
--- a/vcs.py
+++ b/vcs.py
@@ -47,6 +47,10 @@ class Git:
                        print "(keeping local patches around)",
                print
 
+class KDEGit(Git):
+       def __init__(self, folder, name, commit):
+               Git.__init__(self, folder, 'kde:'+name, commit)
+
 # Fetch updates via SVN
 class SVN:
        def __init__(self, folder, svnPath):
@@ -60,3 +64,7 @@ class SVN:
                        subprocess.check_call(['svn', 'switch', self.svnPath]) # and update to the URL we got
                else:
                        subprocess.check_call(['svn', 'co', self.svnPath, self.folder])# just download it
+
+class KDESVN(SVN):
+       def __init__(self, folder, svnPath):
+               SVN.__init__(self, folder, 'svn://svn.kde.org/home/kde/'+svnPath)