~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Lalo Martins
  • Date: 2005-09-14 06:11:53 UTC
  • mto: (1185.1.22)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: lalo@exoweb.net-20050914061153-509cea89f773f329
fixing a few tests that came on the merge, for the new constructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
__copyright__ = "Copyright 2005 Canonical Development Ltd."
40
40
__author__ = "Martin Pool <mbp@canonical.com>"
41
 
__version__ = '0.0.7pre'
 
41
__version__ = '0.1pre'
42
42
 
43
43
 
44
44
def get_bzr_revision():
47
47
    from bzrlib.branch import Branch
48
48
    
49
49
    try:
50
 
        branch = Branch(__path__[0])
 
50
        branch = Branch.open(__path__[0])
51
51
        rh = branch.revision_history()
52
52
        if rh:
53
53
            return len(rh), rh[-1]