summaryrefslogtreecommitdiff
path: root/yarns/0040-generations.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-29 12:30:50 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-29 12:30:50 +0000
commitab9bd1346af936085ad8d986ad17f87df374f272 (patch)
tree10e31cf7ba8b2b91a37df1390db98a3d5cc4a60a /yarns/0040-generations.yarn
parent3a92a2b1d13d54b431b1ff1de77329aa919f043c (diff)
downloadobnam-ab9bd1346af936085ad8d986ad17f87df374f272.tar.gz
Fix "obnam diff latest"
Add test case. Fix code. Reported-by: Junyx
Diffstat (limited to 'yarns/0040-generations.yarn')
-rw-r--r--yarns/0040-generations.yarn6
1 files changed, 6 insertions, 0 deletions
diff --git a/yarns/0040-generations.yarn b/yarns/0040-generations.yarn
index 871adcb7..8339d9a0 100644
--- a/yarns/0040-generations.yarn
+++ b/yarns/0040-generations.yarn
@@ -88,6 +88,12 @@ generations are identical:
AND user U backs up directory L to repository R
AND user U diffs generations 1 and 2 in repository R into D
THEN file D is empty
+
+`obnam diff` can be used with just one generation, and that compares
+it with the generation preceding the given one.
+
+ WHEN user U diffs latest generation in repository R into D
+ THEN file D is empty
If we make a change to the data, that should be reflected in the diff.
We'll assume the diff works, we'll just check whether it's empty.