~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

merge in John Meinels integration branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    from bzrlib.branch import Branch
49
49
    
50
50
    try:
51
 
        branch = Branch.open(__path__[0])
 
51
        import os
 
52
        branch = Branch.open(os.path.dirname(__path__[0]))
52
53
        rh = branch.revision_history()
53
54
        if rh:
54
55
            return len(rh), rh[-1]