Skip to content

Commit

Permalink
Builder: Added 'pull' command for changing the branch
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 14, 2012
1 parent be4fc35 commit d405cba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distrib/autobuild.py
Expand Up @@ -21,6 +21,11 @@
from builder.utils import *


def pull_from_branch():
"""Pulls commits from the repository."""
git_pull()


def create_build_event():
"""Creates and tags a new build for with today's number."""
print 'Creating a new build event.'
Expand Down Expand Up @@ -375,6 +380,7 @@ def sorted_commands():


commands = {
'pull': pull_from_branch,
'create': create_build_event,
'platform_release': todays_platform_release,
'changes': update_changes,
Expand All @@ -396,6 +402,7 @@ def sorted_commands():
print 'The arguments must be: (command) [args]'
print 'Commands:', string.join(sorted_commands())
print 'Arguments:'
print '--branch Branch to use (default: master)'
print '--distrib Doomsday distrib directory'
print '--events Event directory (builds are stored here in subdirs)'
print '--apt Apt repository'
Expand Down
2 changes: 2 additions & 0 deletions distrib/pilot.py
Expand Up @@ -306,10 +306,12 @@ def doTask(task):
elif task == 'branch_stable':
msg("SWITCH TO STABLE BRANCH")
switchToBranch('stable')
return autobuild('pull')

elif task == 'branch_master':
msg("SWITCH TO MASTER BRANCH")
switchToBranch('master')
return autobuild('pull')

elif task == 'tag_build':
msg("TAG MASTER BRANCH")
Expand Down

0 comments on commit d405cba

Please sign in to comment.