The sound distributed version control system

#270 chmod on file double record

Closed on March 26, 2021
tankf33der on January 17, 2021

Strange double record instead of one in the end of scenario.

pijul alpha.35 from crates:

$ pijul init p1
$ cd p1
$ touch a
$ chmod 755 a
$ vim a
$ cat a
1
2
3
$ pijul add a
$ pijul rec -am"."
Hash: EQLLHFFIXH67WX4C3LJYJ2IIQ4ICQDFAJXE4ZI2DGTAJHKJU4MBQC
$ chmod 644 a
$ pijul rec -am"."
Hash: WQXO7HXA3MCXWY7XONGSRRBKFF4CJAYS6ZGSMJAVDL2YVCB3PTMAC
$ pijul rec -am"."
Hash: 2K5A54HPCUJ4XVAET625VINA2LOLOJ67BPFCVGLR23RCVD4TC5FQC
$ pijul rec -am"."
Nothing to record
$
pmeunier on January 17, 2021

Indeed. On my machine it even keeps recording forever. Thanks for the report.

pmeunier added a change on January 17, 2021
NF4O25IELPL2JJBVM3UXMOWP2VIFWXII7PQD3PX5SUW3RYHKP5XQC
main
pmeunier added a change on January 17, 2021
LLT3GY6ULCVHMO3VUSVI5H4O244Z3ULOWLTW2IGJXIA2TWIHJDSQC
main
pmeunier on January 17, 2021

I just fixed this and sent it to CI. Thanks!

tankf33der on January 17, 2021

Are you sure?

I believe pulled all fixes and still can reproduce.

pmeunier on January 17, 2021

It’s fixed on my machine, but you and I had slightly different problems (the problem was worse on my machine, since I could keep recording).

edit: this is why I didn’t close the discussion after pushing the fix, btw.

Would you mind sending me the output of RUST_LOG="libpijul::record=debug" pijul record -am.? Thanks!

tankf33der on January 17, 2021

https://envs.sh/Bb.txt

without debug it needs only two run, in debug it keep recording forever.

tankf33der on February 26, 2021

brother of #294

tankf33der on March 26, 2021

Cant repeat anymore.

tankf33der closed this discussion on March 26, 2021