The sound distributed version control system

#610 pull one record

Closed on January 7, 2022
tankf33der on January 4, 2022
$ rm -rf p1 p2
$ pijul init p1
$ pijul clone p1 p2
$ cd p1
$ touch a
$ pijul add a
$ pijul record -am"."
Hash: 33WY6UGVUWKOYIVZZKOG3HIN6NCAFDLUD4ZG2D5SSKIXN62EQ5SQC
$ cd ../p2
$ pijul pull ../p1 -- 33WY6UGVUWKOYIVZZKOG3HIN6NCAFDLUD4ZG2D5SSKIXN62EQ5SQ
Error: Change not found: 33WY6UGVUWKOYIVZZKOG3HIN6NCAFDLUD4ZG2D5SSKIXN62EQ5SQC
$
pmeunier added tag Feature request on January 7, 2022
pmeunier added a change on January 7, 2022
TCFJMFFE4RUI3PVIUAARUVKSIUJNSMY5MCVWJ4CZQXNYJ2QIUTBAC
main
pmeunier on January 7, 2022

Thanks!

pmeunier closed this discussion on January 7, 2022
tankf33der on January 7, 2022

Scenario above does not work

$ pijul  pull ../p1 -- 2WS5FLFUJERIP6XLQCK3TO53R4LVBDTIHY6Z4EY63J5GMNQPRCNAC
Downloading changes [==================================================] 1/1                     
           Applying [                                                  ] 0/1                   
Error: while retrieving OCIH6YO6LWLICZGIRBBHGNOLXGZJHLVRF6V6WN7JHZ7X7O7OP2AAC: No such file or directory (os error 2)
$ 
tankf33der reopened this discussion on January 7, 2022
pmeunier on January 7, 2022

It isn’t supposed to work, 2WS5 depends on OCIH. The idea is that users specifying specific hashes know the dependencies.

The main reason for that is that one dependency may be very heavy to download, and going through the tree of dependencies can lead to lots of unexpected downloads.

tankf33der on January 7, 2022

OK, implementing tests for pull.

tankf33der closed this discussion on January 7, 2022