def main(args): check_inited(args.git_exe) inbox = args.inbox if not inbox: try: inbox = get_inbox_name(args.git_exe) except: _exit("Could not find default inbox, please run " "'diffscuss mailbox set-default-inbox'", 3) inbox_path = get_inbox_path(inbox, args.git_exe) if not os.path.exists(inbox_path): _exit("Inbox '%s' doesn't exist, create it " "with 'diffscuss mailbox make-inbox'" % inbox_path, 2) for review in os.listdir(inbox_path): if review != '.gitkeep': print _format_listing(os.path.join(inbox_path, review), args.emacs, args.short)
def main(args): check_inited(args.git_exe) inbox = args.inbox if not inbox: try: inbox = get_inbox_name(args.git_exe) except: _exit( "Could not find default inbox, please run " "'diffscuss mailbox set-default-inbox'", 3) inbox_path = get_inbox_path(inbox, args.git_exe) if not os.path.exists(inbox_path): _exit( "Inbox '%s' doesn't exist, create it " "with 'diffscuss mailbox make-inbox'" % inbox_path, 2) for review in os.listdir(inbox_path): if review != '.gitkeep': print _format_listing(os.path.join(inbox_path, review), args.emacs, args.short)
def main(args): check_inited(args.git_exe) inbox = args.inbox set_inbox_name(inbox, args.git_exe)
def main(args): check_inited(args.git_exe) inbox = args.inbox inbox_path = get_inbox_path(inbox, args.git_exe) mkdir_for_keeps(inbox_path)