~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Martin Packman
  • Date: 2011-12-08 19:00:14 UTC
  • mto: This revision was merged to the branch mainline in revision 6359.
  • Revision ID: martin.packman@canonical.com-20111208190014-mi8jm6v7jygmhb0r
Use --include-duplicates for make update-pot which already combines multiple msgid strings prettily

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