/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-16 19:38:39 UTC
  • mfrom: (6852.3.1 is-versioned)
  • Revision ID: jelmer@jelmer.uk-20180216193839-a0efzmp1o64g86ln
Merge lp:~jelmer/brz/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