~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/branch.py

  • Committer: Michael Hudson
  • Date: 2008-10-01 20:02:14 UTC
  • mfrom: (227.1.1 loggerhead.python2.4)
  • Revision ID: michael.hudson@canonical.com-20081001200214-15go6vse1cklf345
restore python2.4 compatibility (Marius Kruger)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        self._config = config
32
32
        self.friendly_name = friendly_name
33
33
        self.branch_link = branch_link  # Currently only used in Launchpad
34
 
        self.log = logging.getLogger('loggerhead.%s' % friendly_name)
 
34
        self.log = logging.getLogger('loggerhead.%s' % (friendly_name,))
35
35
        if graph_cache is None:
36
36
            graph_cache = bzrlib.lru_cache.LRUCache()
37
37
        self.graph_cache = graph_cache
86
86
 
87
87
    def last_updated(self):
88
88
        h = self.get_history()
89
 
        change = h.get_changes([h.last_revid])[0]
 
89
        change = h.get_changes([ h.last_revid ])[0]
90
90
        return change.date
91
91
 
92
92
    def branch_url(self):
110
110
        self.branch.lock_read()
111
111
        try:
112
112
            try:
113
 
                c = cls(self, self.get_history)
 
113
                c = cls(self, self.get_history())
114
114
                return c(environ, start_response)
115
115
            except:
116
116
                environ['exc_info'] = sys.exc_info()
118
118
                raise
119
119
        finally:
120
120
            self.branch.unlock()
 
121