The sound distributed version control system

#348 [Bug] Untracked files can be lost by going back and forth channels.

Closed on July 21, 2021
unidual on February 21, 2021

I really enjoy symmetry! If I am on channel main with clean working directory and I do:

% pijul reset --channel old_test
% pijul reset --channel main

I expect to find back the exact same state in my working dir.

Now, in main I have _checkouts/symlinkTata (and only this file in this directory).
I cannot track the symlink, which is a bug by itself (see #341).
In old_test, _checkouts doesn’t exist, so it is removed.
When switching back to main, only the known (tracked) files are put back.

Morale:

  • pijul should only delete files it tracks. That implies:
  • pijul shouldn’t remove non-empty directories!
pmeunier added tag Beta on April 29, 2021
pmeunier added a change on July 21, 2021
GJZWSXHQ6SYUDTVDOUBTJYU3SG567M2AXWURWKRNVP2MISZ444DQC
main
pmeunier added a change on July 21, 2021
EAAJNZ3J57QH5P5UWJD5CRN62HZKCRW5BKLUCIHSFFKXLUVEFH2AC
main
pmeunier on July 21, 2021

I finally fixed this, sorry for the very long delay and thanks for the detailed explanation!

pmeunier closed this discussion on July 21, 2021