]> arthur.barton.de Git - bup.git/commit
Move commit directories in /.commit/??/
authorGabriel Filion <lelutin@gmail.com>
Fri, 26 Nov 2010 11:00:34 +0000 (06:00 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 1 Dec 2010 10:09:52 +0000 (02:09 -0800)
commit441586461dbd143ed3778eb36dcdf7d98a0bfc46
tree66553622c6aa9c267d4287a693ecd8abec6d7b41
parentd34c0c2d0ca6e80b2d035019b6b475b9b87a2a3a
Move commit directories in /.commit/??/

Currently, directories in which we can access files of a particular
commit are placed in each branch directory by which it is reachable.

To avoid possible repetitions of commit directories, move the
directories in a new top level hidden directory named /.commit.

This hidden directory is structured as a two level-deep directory
structure, wherein the first level represents the first byte (two
hexadecimal characters) of commit hashes, and the second level
represents the remainder of the hash.

With this movement, branch directories now contain only symlinks to the
commit directories in /.commit/??/

Also, in BranchList (formerly CommitList), the 'latest' commit was
computed on every iteration over a commit. I moved this calculation up
one level so that it is computed only once.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
lib/bup/vfs.py