The sound distributed version control system

#681 Show change messages when listing dependencies

Closed on February 22, 2023
Gaelan on May 13, 2022

This updates the code that prints dependencies to include the (first line of) each change’s summary. It also updates the change-parsing code to accept that output, of course.

This makes it easier, for example, to see that your change has an unintended dependency on another change you haven’t submitted yet.

Example output:

$ cargo run -- change OVTCJNBLEVXDO2B6TKJY2TUSJAR6Z5QUUXCNN5WV7WGH76AD5UOQC
message = 'Show change messages when listing dependencies'
timestamp = '2022-05-13T22:33:42.664757Z'

[[authors]]
key = '3uGTfSxiPfZM9adJMcQLNHqMdb9m3ghhMAxFaFGdAmjJ'

# Dependencies
[2] 5FI6SBEZ6RERERUAIWQJVAY66BEZ7YQOYOUNK2DPOLRGS2X326RAC # Re-implement change printing and parsing
[3] IUH7IMWES3KQTHVWA5UNHAO7QWVCC5PQJ6VLK3RC3T4F2MS74P3AC # Contributor license agreements
[4]+VO5OQW4W2656DIYYRNZ3PO7TQ4JOKQ3GVWE5ALUTYVMX3WMXJOYQC # Removing anyhow in libpijul
[*] VO5OQW4W2656DIYYRNZ3PO7TQ4JOKQ3GVWE5ALUTYVMX3WMXJOYQC # Removing anyhow in libpijul
[*] I24UEJQLCH2SOXA4UHIYWTRDCHSOPU7AFTRUOTX7HZIAV4AZKYEQC # Various post-fire fixes

# Hunks
[...]
Gaelan added a change on May 13, 2022
Show change messages when listing dependencies by 3uGTfSxiPfZM9adJMcQLNHqMdb9m3ghhMAxFaFGdAmjJ,
OVTCJNBLEVXDO2B6TKJY2TUSJAR6Z5QUUXCNN5WV7WGH76AD5UOQC
main
rohan on May 27, 2022

Changes can be dependent on the special initial “root add” change which has no message.

rohan added a change on May 27, 2022
CAUO34HH7JQYRK74EG35QQ24QEY2P6MY2ANLXIIX54QLOBNSJEOQC
main
pmeunier on February 22, 2023

Perfect, thanks! And sorry it took so long to review.

pmeunier closed this discussion on February 22, 2023
joyously on January 25, 2024

I know this is closed, but it would be great if this same thing was printed on the output of the dependents command (https://nest.pijul.com/pijul/pijul/discussions/690 which was closed a few days after this one).