/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 bzrlib/workingtree_4.py

  • Committer: Ian Clatworthy
  • Date: 2007-09-14 02:25:32 UTC
  • mto: (2820.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2822.
  • Revision ID: ian.clatworthy@internode.on.net-20070914022532-72l99l9pxew366ct
review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
    def _directory_is_tree_reference(self, relpath):
275
275
        # as a special case, if a directory contains control files then 
276
276
        # it's a tree reference, except that the root of the tree is not
277
 
        return len(relpath) > 0 and \
278
 
            osutils.isdir(self.abspath(relpath) + u"/.bzr")
 
277
        return relpath and osutils.isdir(self.abspath(relpath) + u"/.bzr")
279
278
        # TODO: We could ask all the control formats whether they
280
279
        # recognize this directory, but at the moment there's no cheap api
281
280
        # to do that.  Since we probably can only nest bzr checkouts and