]> arthur.barton.de Git - bup.git/commit
vfs: include unique repo id in resolution cache key
authorRob Browning <rlb@defaultvalue.org>
Fri, 6 Jul 2018 17:01:55 +0000 (12:01 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 18 Aug 2018 20:12:16 +0000 (15:12 -0500)
commit2f9115072c11c39f9b66a4cb57478cfbce4b0d06
tree3916275a0681b3e73ccc4a4e510e3fc92335de0e
parent338beb8d14749263bcefdde992d1ce6110b52bce
vfs: include unique repo id in resolution cache key

...since resolve() currently requires a full parent path and the root
refs are only applicable to a particular repository.

Use differing integers to identify repositories that may be
independent (with respect to refs, tags, etc.), and use (typically
small) integers rather than the repo path/address so that they'll be
short if we want to embed them directly in cache keys later.

Use realpath() for local repositories in order to detect when the same
repository is reachable by multiple paths.  (Something similar could
eventually be done for remotes.)

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/repo.py
lib/bup/vfs.py