Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

changeset: slightly increase code readability

Changeset 683fb9c4f252

Parent cddd2406195e

by Adrian Buehlmann

Changes to one file · Browse files at 683fb9c4f252 Showing diff from parent cddd2406195e Diff from another changeset...

 
167
168
169
170
 
 
171
172
173
174
175
 
 
 
 
 
176
177
 
178
179
180
 
167
168
169
 
170
171
172
 
 
 
 
173
174
175
176
177
178
 
179
180
181
182
@@ -167,14 +167,16 @@
    if self._expanded:   buf += '<table width=100%>\n' - usr = xml_escape(unicode(ctx.user(), 'utf-8', 'replace')) + + user = xml_escape(unicode(ctx.user(), 'utf-8', 'replace'))   buf += '<tr><td width=%i align="right"><span class="label">%s&nbsp;</span></td>' \ - '<td>%s</td></tr>\n' % (labelwidth, 'Author', usr) - d = ctx.date() - dispt = hglib.displaytime(d) - age = hglib.age(d) + '<td>%s</td></tr>\n' % (labelwidth, 'Author', user) + + date = ctx.date() + disptime = hglib.displaytime(date) + age = hglib.age(date)   buf += '<tr><td width=%i align="right"><span class="label">%s&nbsp;</span></td>' \ - '<td>%s (%s)</td></tr>\n' % (labelwidth, 'Date', dispt, age) + '<td>%s (%s)</td></tr>\n' % (labelwidth, 'Date', disptime, age)     def cset(ctx, label):   short = short_hex(ctx.node())