diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-17 08:12:27 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-17 08:12:27 +0000 |
commit | 4c6cbecc4b61f43e077adcc2be381817547adda1 (patch) | |
tree | d0779ef36d4c1d3a7fe0e96a6e7fcee509d2c531 /yarns/0040-generations.yarn | |
parent | 47b91d1f2a329646bb4bc759e20b23c6281b779e (diff) | |
download | obnam-4c6cbecc4b61f43e077adcc2be381817547adda1.tar.gz |
Convert forget --pretend cmdtest to yarn
Diffstat (limited to 'yarns/0040-generations.yarn')
-rw-r--r-- | yarns/0040-generations.yarn | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/yarns/0040-generations.yarn b/yarns/0040-generations.yarn index f3de0536..69bc4a03 100644 --- a/yarns/0040-generations.yarn +++ b/yarns/0040-generations.yarn @@ -157,3 +157,20 @@ The normal way of forgetting generations is with the `obnam forget THEN user U sees 1 generation in repository R WHEN user U restores their latest generation in repository R into X THEN L, restored to X, matches manifest M + +Dnn't really forget anything if pretending +------------------------------------------ + +The `--pretend` option prevents `obnam forget` from actually removing +anything, but lets the user see what would be removed. + + SCENARIO forget doesn't really, when pretending + GIVEN 1kB of new data in directory L + WHEN user U backs up directory L to repository R + GIVEN 1kB of new data in directory L + AND a manifest of L in M + WHEN user U backs up directory L to repository R + AND user U pretends to forget according to schedule 1y in repository R + THEN user U sees 2 generations in repository R + WHEN user U restores their latest generation in repository R into X + THEN L, restored to X, matches manifest M |