~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Shannon Weyrick
  • Date: 2011-11-16 20:59:10 UTC
  • mto: This revision was merged to the branch mainline in revision 6268.
  • Revision ID: weyrick@mozek.us-20111116205910-1xbpqbimbw3fvfqw
A version of the patch, based on suggestions from John Meinel, which detects an empty page differently to avoid false positives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Commands for generating snapshot information about a bzr tree."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
from bzrlib.lazy_import import lazy_import
22
20
 
23
21
lazy_import(globals(), """
107
105
        if format is None:
108
106
            format = version_info_formats.format_registry.get()
109
107
 
 
108
        wt = None
110
109
        try:
111
110
            wt = workingtree.WorkingTree.open_containing(location)[0]
112
111
        except errors.NoWorkingTree:
113
112
            b = branch.Branch.open(location)
114
 
            wt = None
115
113
        else:
116
114
            b = wt.branch
117
115