On Mon, Jun 11, 2018 at 02:24:48PM -0400, Richard Hipp wrote:
> On 6/9/18, Andy Goth <andrew.m.g...@gmail.com> wrote:
> > Some amendments don't consistently survive rebuilds and syncs.  I've
> > noticed this with date changes and reparenting.  Possibly it affects
> > other types of amendments as well, but those are the two I've spotted.
> >
> > This has been plaguing me for years, but finally I have a repeatable
> > test case.
> >
> > Repository before rebuild:
> > https://drive.google.com/open?id=1-Ahs91NVigBX7uMk88wIBjClQj1yxGnm

> 
> Download does not work.  
If it can help, The download works for me, but the repo are compressed
with xz (without the the ".xz" extension). So, before to be able to use
it, you have to rename from the files from <repo>.fossil to
<repo>.fossil.xz.  Then xz -d <repo>.fossil.xz.

> There were errors coming from your script such that the "f amend"
> commands were failing.
> 
For the script, there's a few line warp in the email that cause the
error.  Per example, the newline between the "05" and the "24" on
the following line:

id=1; for day in 15 13 16 12 17 11 18 10 19 09 20 08 21 07 22 06 23 05 
24 04 25 03 26 02 27 01; do f commit -f -m "$id" -tag "$id"

Here's my re-indented version of the script that should works
(if the email client doesn't break it)

--%<------------------------------------------------------------------
#!/bin/bash

fossil new test.fossil -admin-user username -date-override 2018-05-31

mkdir test
cd test

fossil open ../test.fossil
fossil user default username

id=1
for day in 15 13 16 12 17 11 18 10 19 09 20 08 21 07 22 06 23 05 \
           24 04 25 03 26 02 27 01; 
do 
    fossil commit -f -m "$id" -tag "$id" -date-override "2018-06-$day"
    ((++id))
done

for id in $(seq 1 26); 
do 
    fossil amend -date "$(printf 2018-06-%02d "$id")" "$id"
done
--%<------------------------------------------------------------------

Regards,

-- 
Martin G.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to