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

changeset: move two format strings to global scope

Changeset 1196343c2d90

Parent 99f1cf19b017

by Adrian Buehlmann

Changes to one file · Browse files at 1196343c2d90 Showing diff from parent 99f1cf19b017 Diff from another changeset...

 
34
35
36
 
 
 
 
 
37
38
39
 
171
172
173
174
175
176
177
178
179
 
34
35
36
37
38
39
40
41
42
43
44
 
176
177
178
 
 
 
179
180
181
@@ -34,6 +34,11 @@
 </style>  '''   +linkfmt = '<span class="rev_number">%s</span>:<a href="%s" class="rev_hash">%s</a>' + +csetfmt = '<tr><td width=%i align="right"><span class="label">%s&nbsp;</span></td>' \ + '<td>%s&nbsp;<span class="short_desc">%s</span></td></tr>\n' +  class RevDisplay(QtGui.QWidget):   """   Display metadata for one revision (rev, author, description, etc.) @@ -171,9 +176,6 @@
  buf += '<tr><td width=%i align="right"><span class="label">%s&nbsp;</span></td>' \   '<td>%s (%s)</td></tr>\n' % (labelwidth, 'Date', dispt, age)   - linkfmt = '<span class="rev_number">%s</span>:<a href="%s" class="rev_hash">%s</a>' - csetfmt = '<tr><td width=%i align="right"><span class="label">%s&nbsp;</span></td>' \ - '<td>%s&nbsp;<span class="short_desc">%s</span></td></tr>\n'   parents = [p for p in ctx.parents() if p]   for p in parents:   if p.rev() > -1: