Ticket #46: change.patch
| File change.patch, 1.6 kB (added by soundgeek, 2 years ago) |
|---|
-
buildbot-0.7.5/buildbot/changes/changes.py
old new 21 21 Changed at: <b>%(at)s</b><br /> 22 22 %(branch)s 23 23 %(revision)s 24 %(link)s25 24 <br /> 26 25 27 26 Changed files: … … 64 63 revision = None # used to create a source-stamp 65 64 66 65 def __init__(self, who, files, comments, isdir=0, links=[], 67 revision=None, changelink=None,when=None, branch=None):66 revision=None, when=None, branch=None): 68 67 self.who = who 69 68 self.files = files 70 69 self.comments = comments 71 70 self.isdir = isdir 72 71 self.links = links 73 72 self.revision = revision 74 self.changelink = changelink75 73 if when is None: 76 74 when = util.now() 77 75 self.when = when … … 100 98 branch = "" 101 99 if self.branch: 102 100 branch = "Branch: <b>%s</b><br />\n" % self.branch 103 link = ""104 if self.changelink:105 link = "Link: <a href=\"%s\">%s</a><br />\n" % (self.changelink, self.changelink)106 101 107 102 kwargs = { 'who' : html.escape(self.who), 108 103 'at' : self.getTime(), 109 104 'files' : html.UL(links) + '\n', 110 105 'revision': revision, 111 106 'branch' : branch, 112 'link' : link,113 107 'comments': html.PRE(self.comments) } 114 108 return html_tmpl % kwargs 115 109
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)