# Get the source code...
if app['repotype'] == 'git':
- if subprocess.call(['git', 'clone',app['repo'], build_dir]) != 0:
+ if subprocess.call(['git', 'clone', app['repo'], build_dir]) != 0:
print "Git clone failed"
sys.exit(1)
elif app['repotype'] == 'svn':
if subprocess.call(['svn', 'checkout', app['repo'], build_dir]) != 0:
print "Svn checkout failed"
sys.exit(1)
+ elif app['repotype'] == 'hg':
+ if subprocess.call(['hg', 'clone', app['repo'], build_dir]) !=0:
+ print "Hg clone failed"
+ sys.exit(1)
else:
print "Invalid repo type " + app['repotype'] + " in " + app['id']
sys.exit(1)
cwd=build_dir) != 0:
print "Svn update failed"
sys.exit(1)
+ elif app['repotype'] == 'hg':
+ if subprocess.call(['hg', 'checkout', thisbuild['commit']],
+ cwd=build_dir) != 0:
+ print "Hg checkout failed"
+ sys.exit(1)
+
else:
print "Invalid repo type " + app['repotype']
sys.exit(1)