]> arthur.barton.de Git - bup.git/blobdiff - cmd/ls-cmd.py
configure.inc: name the tmpdir with a configure- prefix
[bup.git] / cmd / ls-cmd.py
index 031fbaefd7aba78339df53162d66b1773c8ce11d..9180da3a7635d2df45b7b7c6c1d0806ba9924a38 100755 (executable)
@@ -4,14 +4,15 @@ bup_python="$(dirname "$0")/bup-python" || exit $?
 exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
+
+from __future__ import absolute_import
 import sys
-from bup import git, vfs, ls
-from bup.helpers import *
+
+from bup import git, ls
 
 
 git.check_repo_or_die()
-top = vfs.RefList(None)
 
 # Check out lib/bup/ls.py for the opt spec
-ret = ls.do_ls(sys.argv[1:], top, default='/', spec_prefix='bup ')
-sys.exit(ret)
+rc = ls.via_cmdline(sys.argv[1:])
+sys.exit(rc)