(args, repo)
| 25 | |
| 26 | |
| 27 | def main(args, repo): |
| 28 | b = repo.lookup_branch(args.branch) |
| 29 | |
| 30 | if not b: |
| 31 | pprint.err('Branch {0} doesn\'t exist'.format(args.branch)) |
| 32 | pprint.err_exp('to list existing branches do gl branch') |
| 33 | pprint.err_exp('to create a new branch do gl branch -c {0}'.format(args.branch)) |
| 34 | return False |
| 35 | |
| 36 | repo.switch_current_branch(b, move_over=args.move_over) |
| 37 | pprint.ok('Switched to branch {0}'.format(args.branch)) |
| 38 | return True |
nothing calls this directly
no test coverage detected