/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/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-03 15:10:11 UTC
  • mto: (1185.50.36 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: john@arbash-meinel.com-20060103151011-2ad890a2ff1475a4
Deprecating bzrlib.get_bzr_revision, in favor of bzrlib.builtins._get_bzr_branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
 
97
97
def get_bzr_revision():
98
 
    """If bzr is run from a branch, return (revno,revid) or None"""
 
98
    """If bzr is run from a branch, return (revno,revid) or None
 
99
 
 
100
    deprecated in bzr 0.7
 
101
    """
99
102
    import bzrlib.errors
100
103
    from bzrlib.branch import Branch
101
104
    
103
106
        branch = Branch.open(os.path.dirname(__path__[0]))
104
107
        rh = branch.revision_history()
105
108
        if rh:
106
 
            return len(rh), rh[-1], branch
 
109
            return len(rh), rh[-1]
107
110
        else:
108
111
            return None
109
112
    except bzrlib.errors.BzrError: