~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-30 12:52:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6418.
  • Revision ID: jelmer@samba.org-20111230125254-igy1abnixsvulfqd
Simplify code a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
        if format is None:
108
108
            format = version_info_formats.format_registry.get()
109
109
 
110
 
        wt = None
111
110
        try:
112
111
            wt = workingtree.WorkingTree.open_containing(location)[0]
113
112
        except errors.NoWorkingTree:
114
113
            b = branch.Branch.open(location)
 
114
            wt = None
115
115
        else:
116
116
            b = wt.branch
117
117