~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Wouter van Heyst
  • Date: 2007-01-18 23:20:16 UTC
  • mto: (2234.3.5 0.14)
  • mto: This revision was merged to the branch mainline in revision 2243.
  • Revision ID: larstiq@larstiq.dyndns.org-20070118232016-7xx7u7w3tile8m6x
(James Westby) Handle bzr residing in a non-workingtree nested in a repository (#77306)

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    try:
64
64
        from bzrlib.workingtree import WorkingTree
65
65
        return WorkingTree.open_containing(__file__)[0]
66
 
    except (errors.NotBranchError, errors.UnknownFormatError):
 
66
    except (errors.NotBranchError, errors.UnknownFormatError,
 
67
            errors.NoWorkingTree):
67
68
        return None