Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.6, 0.7, and 0.7.1

history: refactor display code for branches and tags

Changeset 950bb1dcba95

Parent 7c49f7c5c552

by TK Soh

Changes to one file · Browse files at 950bb1dcba95 Showing diff from parent 7c49f7c5c552 Diff from another changeset...

 
107
108
109
 
110
111
112
 
113
114
115
116
 
117
118
119
 
 
120
121
122
 
 
123
124
125
 
132
133
134
135
136
 
 
 
137
138
139
 
107
108
109
110
111
 
 
112
113
114
115
116
117
118
 
 
119
120
121
 
 
122
123
124
125
126
 
133
134
135
 
 
136
137
138
139
140
141
@@ -107,19 +107,20 @@
  node = self.repo.lookup(revid)   tags = self.repo.nodetags(node)   taglist = toutf(', '.join(tags)) + tstr = ''   for tag in tags: - summary = '<span background="#ffffaa"> %s </span> %s' % ( - tag, summary) + tstr += '<span background="#ffffaa"> %s </span> ' % tag     # show branch names per hgweb's logic   branches = webutil.nodebranchdict(self.repo, ctx)   inbranches = webutil.nodeinbranch(self.repo, ctx) + bstr = ''   for branch in branches: - summary = '<span background="#aaffaa"> %s </span> %s' % ( - branch['name'], summary) + bstr += '<span background="#aaffaa"> %s </span> ' % \ + branch['name']   for branch in inbranches: - summary = '<span background="#d5dde6"> %s </span> %s' % ( - branch['name'], summary) + bstr += '<span background="#d5dde6"> %s </span> ' % \ + branch['name']       if '<' in ctx.user(): @@ -132,8 +133,9 @@
  wc_parent = revid in self.parents   head = revid in self.heads   color = self.color_func(parents, revid, author) - - revision = (None, node, revid, None, summary, + sumstr = bstr + tstr + summary + + revision = (None, node, revid, None, sumstr,   author, date, None, parents, wc_parent, head, taglist,   None, color, short(node))   self.revisions[revid] = revision