~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

(jelmer) Fix -r argument for 'bzr version-info' to actually use specified
 tree everywhere. (Jelmer Vernooij)

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