]> arthur.barton.de Git - bup.git/commit
Move VFS cp() to git.py; handle repodir changes
authorRob Browning <rlb@defaultvalue.org>
Wed, 21 May 2014 02:40:51 +0000 (21:40 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 21 May 2014 16:45:05 +0000 (11:45 -0500)
commit9dfd9236ce862e32d4d45d3e1f18048db48b2874
treea2cf120fddf2966965cc4a935d99cadfff6210da
parent2d7509c1d9c275a5c12aea1124d4aaa75cc1b379
Move VFS cp() to git.py; handle repodir changes

Move the VFS's cp() to git.py and reset the cp() CatPipe whenever the
global repodir changes.

Previously, if two different lib/bup/t/ tests (for example) needed to
use two different repositories, and both happened to indirectly call
cp(), the second test would end up with a CatPipe() connected to the
wrong repository.

In the longer run, we may want to consider further cleanup here, but
this should fix the immediate problem without too much risk.

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