/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tree.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-15 19:38:33 UTC
  • mto: This revision was merged to the branch mainline in revision 6856.
  • Revision ID: jelmer@jelmer.uk-20180215193833-se5x3srhbfrr54tk
add Tree.is_versioned.

Show diffs side-by-side

added added

removed removed

Lines of Context:
533
533
        """Return the id for path in this tree."""
534
534
        raise NotImplementedError(self.path2id)
535
535
 
 
536
    def is_versioned(self, path):
 
537
        """Check whether path is versioned.
 
538
 
 
539
        :param path: Path to check
 
540
        :return: boolean
 
541
        """
 
542
        return (self.path2id(path) is not None)
 
543
 
536
544
    def paths2ids(self, paths, trees=[], require_versioned=True):
537
545
        """Return all the ids that can be reached by walking from paths.
538
546