def main(): process_options() try: git.check_repository() if config["deps"]: git_list_dependencies() elif not config["limb1"] and not config["limb2"]: git_list_branches() elif config["move"]: git_move_limb() elif config["delete"]: git_delete_limb() else: git_create_limb() except git.GitError, e: sys.stderr.write("\nError: %s\n" % e.msg) sys.stderr.write("Exiting.\n") if config["debug"]: sys.stdout.write("\n") raise sys.exit(1)
def main(): process_options() try: git.check_repository() if config["dependents"]: git_dependent_branches() elif config["limb"]: git_pending_limb() else: if config["left"]: git_pending_commits() else: git_pending_branch(git.current_branch()) except git.GitError, e: sys.stderr.write("\nError: %s\n" % e.msg) sys.stderr.write("Exiting.\n") if config["debug"]: sys.stdout.write("\n") raise sys.exit(1)
def main(): process_options() try: git.check_repository() cherry_pick_mv() except git.GitError, e: sys.stderr.write("\nError: %s\n" % e.msg) sys.stderr.write("Exiting.\n") if config["debug"]: sys.stdout.write("\n") raise sys.exit(1)
def main(): try: process_options() git.check_repository() commit_mv() except git.GitError, e: sys.stderr.write("\nError: %s\n" % e.msg) sys.stderr.write("Exiting.\n") if opt["debug"]: sys.stdout.write("\n") raise sys.exit(1)
def main(): ''' Main program ''' set_global_constants() try: process_options() git.check_repository() do_analyze() except git.GitError, e: sys.stderr.write("\nError: %s\n" % e.msg) sys.stderr.write("Exiting.\n") if debug: sys.stdout.write("\n") raise sys.exit(1)