Merge lp:~jlgeering/bzr-trac/dev into lp:bzr-trac

Proposed by Jean-Luc Geering
Status: Needs review
Proposed branch: lp:~jlgeering/bzr-trac/dev
Merge into: lp:bzr-trac
Diff against target: None lines
To merge this branch: bzr merge lp:~jlgeering/bzr-trac/dev
Reviewer Review Type Date Requested Status
IPI Tech Pending
Review via email: mp+11905@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jean-Luc Geering (jlgeering) wrote :

add bzrlib version info to env.systeminfo

Revision history for this message
Jean-Luc Geering (jlgeering) wrote :

Bazaar version will be displayed on the "About Trac" page, as well as error pages in the System Information section

Unmerged revisions

5. By Jean-Luc Geering

add bzrlib version info to env.systeminfo

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrtrac/backend.py'
2--- bzrtrac/backend.py 2008-07-22 09:22:08 +0000
3+++ bzrtrac/backend.py 2009-09-16 16:25:39 +0000
4@@ -33,7 +33,13 @@
5
6 log = None
7 repository = None
8-
9+
10+ def __init__(self):
11+ """ Get the bzrlib version. """
12+ from bzrlib.api import get_current_api_version
13+ self._bzrlib_version = '%i.%i.%i' % get_current_api_version(None)
14+ self.env.systeminfo.append(('Bazaar', self._bzrlib_version))
15+
16 ## IRepositoryConnector methods
17 def get_supported_types(self): # pylint: disable-msg=R0201
18 """ Return the types of version control systems that are supported. """

Subscribers

People subscribed via source and target branches