def test_gitflow_track_creates_tracking_branch(self): gitflow = GitFlow(self.repo).init() gitflow.track('feature', 'even') self.assertEqual(self.repo.active_branch.name, 'feat/even') self.assertTrue(self.repo.active_branch.tracking_branch()) self.assertEqual(self.repo.refs['feat/even'].tracking_branch(), gitflow.origin().refs['feat/even'])
def run_track(args): gitflow = GitFlow() # NB: `args.version` is required since the branch must not yet exist gitflow.start_transaction('tracking remote release branch %s' % args.version) branch = gitflow.track('release', args.version) print() print("Summary of actions:") print("- A new remote tracking branch '%s' was created" % branch) print("- You are now on branch '%s'" % branch) print()
def run_track(args): gitflow = GitFlow() # NB: `args.name` is required since the branch must not yet exist gitflow.start_transaction('tracking remote feature branch %s' % args.name) branch = gitflow.track('feature', args.name) print print "Summary of actions:" print "- A new remote tracking branch '%s' was created" % branch print "- You are now on branch '%s'" % branch print
def run_track(args): gitflow = GitFlow() # NB: `args.version` is required since the branch must not yet exist gitflow.start_transaction('tracking remote release branch %s' % args.version) branch = gitflow.track('release', args.version) print print "Summary of actions:" print "- A new remote tracking branch '%s' was created" % branch print "- You are now on branch '%s'" % branch print
def run_track(args): gitflow = GitFlow() # NB: `args.name` is required since the branch must not yet exist gitflow.start_transaction('tracking remote feature branch %s' % args.name) branch = gitflow.track('feature', args.name) print() print("Summary of actions:") print("- A new remote tracking branch '%s' was created" % branch) print("- You are now on branch '%s'" % branch) print()