The sound distributed version control system

#807 Bugs when recording changes

Opened by loewenheim on June 16, 2023
loewenheim on June 16, 2023

This happens on current main, i.e. https://nest.pijul.com/pijul/pijul/changes/FY6SDCTOQGPHDS3UZ7HJAXEDDYYLAFQXEQSSEWF62TK25MGRWJHQC.

In an empty directory:

❯ pijul init
Repository created at […]
❯ touch test.txt
❯ pijul add test.txt
Tracked 1 path(s)
❯ pijul record -m "add test.txt"
<save and quit editor>
Error: Cannot parse change

It works using pijul record -m "add test.txt" -a, however.

Continuing from the above,

❯ echo "One
  Two" > test.txt
❯ cat test.txt
One
Two
❯ pijul rec -m "add lines"
<save and quit editor>
Hash: ZLJJEKCUKFJXSYPQUUF5CHM7J3BOXR7ROHR5NZUEJ2MDK6Z2WCCQC
❯ pijul change ZLJ
message = 'add lines'
timestamp = '2023-06-16T13:42:25.967370Z'

[[authors]]
key = '4hdiwewPuQv1DSssHK1YUVrRqdybeiJsyVmXJtQ9tpA2'

# Dependencies
[2] I7BZ567BRIIORYYSHT6DGYVELE6IACYX42K7PQV4EXY5TAKCDZ7AC # add test.txt

# Hunks

1. Edit in "test.txt":1 2.1 "UTF-8"
  up 2.1, new 0:4, down
+ One

❯ pijul diff
message = ''
timestamp = '2023-06-16T13:42:30.738426Z'
authors = []

# Dependencies
[2] ZLJJEKCUKFJXSYPQUUF5CHM7J3BOXR7ROHR5NZUEJ2MDK6Z2WCCQC # add lines
[3]+I7BZ567BRIIORYYSHT6DGYVELE6IACYX42K7PQV4EXY5TAKCDZ7AC # add test.txt

# Hunks

1. Edit in "test.txt":2 3.1 "UTF-8"
  up 2.4, new 1:5, down
+ Two

Only the first line has been recorded.

tankf33der on June 16, 2023

What version of pijul?

loewenheim on June 16, 2023

Freshly compiled main branch. @pmeunier mentions on Zulip that he could only reproduce this after pulling the patches from #804.