~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/branch.py

  • Committer: Martin Albisetti
  • Date: 2008-08-05 05:17:47 UTC
  • mfrom: (190.1.3 branch_locations)
  • Revision ID: argentina@gmail.com-20080805051747-j2s6xl31yqzrjgti
Providing branch_link which will provide a hyperlink on the friendly name (Tim Penhey)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
class BranchWSGIApp(object):
25
25
 
26
 
    def __init__(self, branch, friendly_name=None, config={}, graph_cache=None):
 
26
    def __init__(self, branch, friendly_name=None, config={},
 
27
                 graph_cache=None, branch_link=None):
27
28
        self.branch = branch
28
29
        self._config = config
29
30
        self.friendly_name = friendly_name
 
31
        self.branch_link = branch_link  # Currently only used in Launchpad
30
32
        self.log = logging.getLogger('loggerhead.%s' % (friendly_name,))
31
33
        if graph_cache is None:
32
34
            graph_cache = bzrlib.lru_cache.LRUCache()