Class GitMaintain::Branch
In: lib/branch.rb
Parent: Object

Methods

check_opts   checkout   cp   create   delete   execAction   is_targetted?   list   list_stable   load   log   merge   monitor   monitor_stable   new   push   push_stable   release   reset   set_opts   steal  

Constants

ACTION_LIST = [ :cp, :steal, :list, :list_stable, :merge, :push, :monitor, :push_stable, :monitor_stable, :release, :reset, :create, :delete
NO_FETCH_ACTIONS = [ :cp, :merge, :monitor, :release, :delete
NO_CHECKOUT_ACTIONS = [ :create, :delete, :list, :list_stable, :push, :monitor, :monitor_stable
ALL_BRANCHES_ACTIONS = [ :create
ACTION_HELP = [ "* cp: Backport commits and eventually push them to github", "* create: Create missing local branches from all the stable branches", "* delete: Delete all local branches using the suffix", "* steal: Steal commit from upstream that fixes commit in the branch or were tagged as stable", "* list: List commit present in the branch but not in the stable branch", "* list_stable: List commit present in the stable branch but not in the latest associated relase", "* merge: Merge branch with suffix specified in -m <suff> into the main branch", "* push: Push branches to github for validation", "* monitor: Check the travis state of all branches", "* push_stable: Push to stable repo", "* monitor_stable: Check the travis state of all stable branches", "* release: Create new release on all concerned branches", "* reset: Reset branch against upstream", ]

Attributes

exists  [R] 
head  [R] 
local_branch  [R] 
remote_branch  [R] 
remote_ref  [R] 
stable_head  [R] 
verbose_name  [R] 
version  [R] 

Public Class methods

Public Instance methods

Checkout the repo to the given branch

Cherry pick an array of commits

List commits in the branch that are no in the stable branch

List commits in the stable_branch that are no in the latest release

Merge merge_branch into this one

Monitor the build status on Travis

Monitor the build status of the stable branch on Travis

Push the branch to the validation repo

Push branch to the stable repo

Reset the branch to the upstream stable one

Steal upstream commits that are not in the branch

[Validate]