~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-04 09:41:29 UTC
  • mfrom: (5816.3.4 serve-tariff-wt)
  • Revision ID: pqm@pqm.ubuntu.com-20110504094129-zodvq0croxdzf86w
(jelmer) Don't load working tree implementations during 'bzr serve'. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1252
1252
    def has_workingtree(self):
1253
1253
        """Tell if this bzrdir contains a working tree.
1254
1254
 
1255
 
        This will still raise an exception if the bzrdir has a workingtree that
1256
 
        is remote & inaccessible.
1257
 
 
1258
1255
        Note: if you're going to open the working tree, you should just go
1259
1256
        ahead and try, and not ask permission first.
1260
1257
        """
1261
1258
        from bzrlib.workingtree import WorkingTreeFormat
1262
1259
        try:
1263
 
            WorkingTreeFormat.find_format(self)
 
1260
            WorkingTreeFormat.find_format_string(self)
1264
1261
        except errors.NoWorkingTree:
1265
1262
            return False
1266
1263
        return True