def do_ls(repo, args): try: opt = ls.opts_from_cmdline(args, onabort=OptionError) except OptionError as e: log('error: %s' % e) return return ls.within_repo(repo, opt)
def do_ls(repo, pwd, args, out): pwd_str = b'/'.join(name for name, item in pwd) or b'/' try: opt = ls.opts_from_cmdline(args, onabort=OptionError, pwd=pwd_str) except OptionError as e: return return ls.within_repo(repo, opt, out, pwd_str)
def do_ls(repo, args, out): try: opt = ls.opts_from_cmdline([fsdecode(arg) for arg in args], onabort=OptionError) except OptionError as e: log('error: %s' % e) return return ls.within_repo(repo, opt, out)