]> arthur.barton.de Git - bup.git/commitdiff
cmd-ls: a line got lost and it didn't work at all.
authorAvery Pennarun <apenwarr@gmail.com>
Sat, 6 Feb 2010 20:27:29 +0000 (15:27 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 6 Feb 2010 22:03:10 +0000 (17:03 -0500)
Also add a trivial test for bup ls to prevent this sort of thing in the
future.

cmd-ls.py
t/test.sh

index a1a22ac52ea22ae0abb4b54d203ce06a4d33b731..0cd4a5c3a4493043208db20f2e68d0fd2e0028bc 100755 (executable)
--- a/cmd-ls.py
+++ b/cmd-ls.py
@@ -32,6 +32,7 @@ o = options.Options('bup ls', optspec)
 (opt, flags, extra) = o.parse(sys.argv[1:])
 
 git.check_repo_or_die()
+cp = git.CatPipe()
 
 if not extra:
     extra = ['/']
index 893f63aaf43ed413fcf53663c6cbe9dcc1958f94..70ee1be588b69814c5aa981815fe26a4ee4b249e 100755 (executable)
--- a/t/test.sh
+++ b/t/test.sh
@@ -84,6 +84,10 @@ WVPASS bup split -t t/testfile2 --fanout 3 >tags2tf.tmp
 WVPASS bup split -r "$BUP_DIR" -c t/testfile2 >tags2c.tmp
 WVPASS ls -lR \
    | WVPASS bup split -r "$BUP_DIR" -c --fanout 3 --max-pack-objects 3 -n lslr
+WVPASS bup ls
+WVFAIL bup ls /does-not-exist
+WVPASS bup ls /lslr
+WVPASS bup ls /lslr/1971-01-01   # all dates always exist
 WVFAIL diff -u tags1.tmp tags2.tmp
 
 # fanout must be different from non-fanout