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

revdisplay: preload change message text for patches

allows to edit the message for the current patch and then qrefresh

To fix: edits to the message text are lost without warning if the
selected revision is changed before qrefreshing

Changeset 9bb6a220de17

Parent 920c8ed1caa8

by Adrian Buehlmann

Changes to one file · Browse files at 9bb6a220de17 Showing diff from parent 920c8ed1caa8 Diff from another changeset...

 
228
229
230
231
 
232
233
234
 
298
299
300
301
 
302
 
 
 
 
 
 
303
304
305
 
228
229
230
 
231
232
233
234
 
298
299
300
 
301
302
303
304
305
306
307
308
309
310
311
@@ -228,7 +228,7 @@
    self._header.setText(buf)   - self._message.displayRevision(ctx) + self._message.displayRevision(ctx, self.mqpatch)     def expandedText(self):   ctx = self.ctx @@ -298,8 +298,14 @@
  def text(self):   return str(self._message.toPlainText())   - def displayRevision(self, ctx): + def displayRevision(self, ctx, mqpatch):   self.ctx = ctx + + if ctx.rev() is None and mqpatch: + ctx = ctx.p1() + self._message.setText(ctx.description()) + return +   desc = xml_escape(tounicode(ctx.description()))   desc = desc.replace('\n', '<br/>\n')