~ubuntu-branches/ubuntu/vivid/bzr-svn/vivid

« back to all changes in this revision

Viewing changes to workingtree.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-03-06 01:55:20 UTC
  • mfrom: (3.3.13 sid)
  • Revision ID: package-import@ubuntu.com-20120306015520-grugcrw9ju4a0qsm
Tags: 1.2.1-1
* Fix format string of copyright file.
* Bump standards version to 3.9.3.
* Add basic tests for autopkgtest.
* New upstream release.
 + Fixes tests against newer versions of bzr. Closes: #660730

Show diffs side-by-side

added added

removed removed

Lines of Context:
733
733
                ie.executable = self.is_executable(id, relpath)
734
734
                return ie
735
735
 
 
736
    def iter_children(self, file_id, path=None):
 
737
        """See Tree.iter_children."""
 
738
        entry = self.iter_entries_by_dir([file_id]).next()[1]
 
739
        for child in getattr(entry, 'children', {}).itervalues():
 
740
            yield child.file_id
 
741
 
736
742
    def iter_entries_by_dir(self, specific_file_ids=None, yield_parents=False):
737
743
        """See WorkingTree.iter_entries_by_dir."""
738
744
        if specific_file_ids is not None:
998
1004
            return self.branch.basis_tree()
999
1005
 
1000
1006
    def list_files(self, include_root=False, from_dir=None, recursive=True):
1001
 
        """See `Tree.list_files`."""
 
1007
        """See ``Tree.list_files``."""
1002
1008
        # TODO: This doesn't sort the output
1003
1009
        # TODO: This ignores unversioned files at the moment
1004
1010
        if from_dir is None: