Nested tree support - current status

Jelmer Vernooij jelmer at jelmer.uk
Sun Oct 20 00:26:27 UTC 2019


On Mon, Oct 14, 2019 at 05:49:04PM +0100, Jelmer Vernooij wrote:
> So we're making steady progress on nested tree support.
> 
> The bulk of work was actually in getting rid in file-id based lookups, since they can potentially involve opening all subtrees. These are now mostly gone.
> 
> The next steps are:
> 
> * Update Tree.list_files (mp out for review)
> * Update Tree.iter_entries_by_dir (mp prepared)
> * Update Tree.iter_changes (mp in progress)
> * Update Tree.get_* to accept nested paths (mp mostly done, needs tests)
> 
> And then finally, updating commands:
> 
> * add --no-recurse-nested flag to diff, log, ls, status (changes done, needs tests)
> * add --no-recurse-nested flag to branch/pull/push
> 
> And eventually:
> 
> * Support moving files between nested trees
> * Allow rename detection across trees

I've proposed a series of branches that will add basic support for
nested trees.

* https://code.launchpad.net/~jelmer/brz/follow-tree-references-list-files/+merge/374066
* https://code.launchpad.net/~jelmer/brz/follow-tree-references-iter-entries-by-dir/+merge/374108
* https://code.launchpad.net/~jelmer/brz/follow-tree-references-id2path/+merge/374163
* https://code.launchpad.net/~jelmer/brz/follow-tree-references-branch/+merge/374397

Full support is still a couple of weeks away - iter_changes needs some
refactoring.

However, I have already managed to get to the point where this works:

$ brz branch https://github.com/phhusson/quassel-irssi
Total 578 (delta 0), reused 0 (delta 0), pack-reused 578
Checking out submodule at https://github.com/phhusson/QuasselC.git to core/lib
Total 194 (delta 0), reused 0 (delta 0), pack-reused 194
Branched 106 revisions.

Jelmer

-- 
Jelmer Vernooij <jelmer at jelmer.uk>
PGP Key: https://www.jelmer.uk/D729A457.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20191020/19eefaf1/attachment.sig>


More information about the bazaar mailing list