Internal Repository Format
The internal repository format is designed as simple as possible. It´s similar to gits repository format. Files are simply handled als “blobs”. Bar does not know anything about it, but simply copies its content into a subfolder /blobs. The sha1 checksum is calculated from each file and the content of the file saved named by its checksum. Subfolders based on the first two letters are used to divide the files in subdirectories.
Each revision is saved in a snapshot file. This is a json file which contains mainly the list of files and their sha1 checksums in the workdir of the time the snapshot was taken. No diffs or deltas are supported. So its easy to read such a file with an external tool and associated the sha1´d content files that related to each file for a desaster recovery.