Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

commit: provide undo/redo feature to commit message area

Closes #1088

Changeset bcbd4c842c56

Parent d411b35c5d13

by Yuki KODAMA

Changes to one file · Browse files at bcbd4c842c56 Showing diff from parent d411b35c5d13 Diff from another changeset...

 
25
26
27
28
 
 
29
30
31
 
436
437
438
439
 
440
441
442
 
1178
1179
1180
1181
 
1182
1183
1184
 
25
26
27
 
28
29
30
31
32
 
437
438
439
 
440
441
442
443
 
1179
1180
1181
 
1182
1183
1184
1185
@@ -25,7 +25,8 @@
   from tortoisehg.hgtk.status import GStatus, FM_STATUS, FM_CHECKED  from tortoisehg.hgtk.status import FM_PATH, FM_PATH_UTF8 -from tortoisehg.hgtk import csinfo, gtklib, thgconfig, gdialog, hgcmd, thgmq +from tortoisehg.hgtk import csinfo, gtklib, thgconfig, gdialog, hgcmd +from tortoisehg.hgtk import thgmq, textview    class BranchOperationDialog(gtk.Dialog):   def __init__(self, branch, close, repo): @@ -436,7 +437,7 @@
  self.add_accelerator('thg-reflow', accelgroup, key,   modifier, gtk.ACCEL_VISIBLE)   - self.text = gtk.TextView() + self.text = textview.UndoableTextView(accelgroup=accelgroup)   self.text.connect('populate-popup', self.msg_add_to_popup)   self.connect('thg-reflow', self.thgreflow, self.text)   self.text.modify_font(self.fonts['comment']) @@ -1178,7 +1179,7 @@
  self.mode = 'commit'   self.qnew = False   elif self.qheader is None: - self.text.set_buffer(gtk.TextBuffer()) + self.text.set_buffer(textview.UndoableTextBuffer())   self.msg_cbbox.set_active(-1)   self.last_commit_id = self.get_tip_rev(True)   if self.notify_func: