[Bug 830781] Re: Tree.iter_child_entries() method
Jelmer Vernooij
830781 at bugs.launchpad.net
Wed Jul 11 11:06:34 UTC 2012
** Also affects: bzr (Ubuntu)
Importance: Undecided
Status: New
** No longer affects: bzr (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/830781
Title:
Tree.iter_child_entries() method
Status in Bazaar Version Control System:
Fix Released
Bug description:
It would be nice if the Tree interface had a method for iterating over
the children of a directory.
This would make it possible to convert a few of the functions in bzr-
svn/bzr-git that currently rely on inventories to use the generic tree
interface for e.g. push. This makes it possible to e.g. push directly
from a git checkout to a svn branch.
There are currently two methods on Tree that iterate over entries, we could also tweak them so a iter_children method would not be necessary:
* list_files: tailored towards "bzr ls" output, yields unnecessary data and does a lot of things that are not necessary
* iter_entries_by_dir: yields all entries in the tree or only some specific file ids
To manage notifications about this bug go to:
https://bugs.launchpad.net/bzr/+bug/830781/+subscriptions
More information about the foundations-bugs
mailing list