The sound distributed version control system

#400 [libpijul] unrecord --reset fails and returns zero exit code

Closed on April 25, 2021
tankf33der on March 26, 2021

Latest pijul and linux2x. Run ./unrec-dir.sh, two issues - it failed and returned zero error code. Please check everywhere you return non-zero on any errors, this is important for future runs over test suite, set -e already everywhere.

$ ./unrec-dir.sh 
+ source ./functions.sh
+ cd ..
+ rm -rf repo
+ pijul init repo
+ cd repo
+ mkdir -p 1/2/3/4
+ echo mikeiscool
+ pijul add -r -- 1
+ pijul rec -am.
+ pijul mv 1 2
+ pijul rec -am.
++ pijul log --hash-only
++ head -1
+ H=J527RH4RUCQ7ZF5EUP5MSFHR3LLZGGZS7EF5GREC4QKUCHLVWTUQC
+ pijul unrec --reset J527RH4RUCQ7ZF5EUP5MSFHR3LLZGGZS7EF5GREC4QKUCHLVWTUQC
[2021-03-26T08:25:06Z ERROR libpijul::working_copy::filesystem] while renaming "/home/mpech/repo/8MWUlfJq4AxP9bMxbYwydb7eDvfmi0" to "/home/mpech/repo/1": Os { code: 39, kind: Other, message: "Directory not empty" }
+ echo OK--unrec-dir
OK--unrec-dir
$ echo $?
0
$
pmeunier added a change on April 25, 2021
YCEZL7VFBZNOZTSSI24D36ACJVZKXCCEOIFWIHQWK22QPB4PDTRAC
main
pmeunier on April 25, 2021

Just fixed both of them, thanks!

pmeunier closed this discussion on April 25, 2021
tankf33der on April 25, 2021

Enabled.