/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-20 15:11:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2028.
  • Revision ID: john@arbash-meinel.com-20060920151119-88a7090d0c17bbb3
RemoveĀ unusedĀ imports

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
 
import sys
20
 
import codecs
21
 
 
22
19
from bzrlib import (
 
20
    branch,
23
21
    version_info_formats,
 
22
    workingtree,
24
23
    )
25
 
from bzrlib.branch import Branch
26
24
from bzrlib.commands import Command
27
25
from bzrlib.errors import BzrCommandError
28
26
from bzrlib.option import Option
29
 
from bzrlib.workingtree import WorkingTree
30
 
 
31
27
 
32
28
 
33
29
def _parse_version_info_format(format):
68
64
 
69
65
        wt = None
70
66
        try:
71
 
            wt = WorkingTree.open_containing(location)[0]
 
67
            wt = workingtree.WorkingTree.open_containing(location)[0]
72
68
        except NoWorkingTree:
73
 
            b = Branch.open(location)
 
69
            b = branch.Branch.open(location)
74
70
        else:
75
71
            b = wt.branch
76
72