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

commit: use qsci's builtin menu for settings

Changeset 80bc88cde1e4

Parent e4b7b7623953

by Steve Borho

Changes to one file · Browse files at 80bc88cde1e4 Showing diff from parent e4b7b7623953 Diff from another changeset...

 
30
31
32
33
34
35
36
 
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
 
436
437
438
 
439
440
441
 
454
455
456
 
457
458
459
 
30
31
32
 
33
34
35
 
51
52
53
 
54
55
56
57
58
59
 
 
 
 
 
 
60
61
62
 
428
429
430
431
432
433
434
 
447
448
449
450
451
452
453
@@ -30,7 +30,6 @@
  super(MessageEntry, self).__init__(parent)   self.setEdgeColor(QColor('LightSalmon'))   self.setEdgeMode(QsciScintilla.EdgeLine) - self.setWrapMode(QsciScintilla.WrapNone)   self.setReadOnly(False)   self.setMarginWidth(1, 0)   self.setFont(qtlib.getfont('fontcomment').font()) @@ -52,19 +51,12 @@
  # http://www.riverbankcomputing.com/pipermail/qscintilla/2009-February/000461.html   self.setHorizontalScrollBarPolicy(Qt.ScrollBarAsNeeded)   self.setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded) - self.setWrapMode(QsciScintilla.WrapCharacter)     def refresh(self, repo):   self.setEdgeColumn(repo.summarylen)   self.setIndentationWidth(repo.tabwidth)   self.setTabWidth(repo.tabwidth)   self.summarylen = repo.summarylen - if repo.wsvisible == 'Visible': - self.setWhitespaceVisibility(QsciScintilla.WsVisible) - elif repo.wsvisible == 'VisibleAfterIndent': - self.setWhitespaceVisibility(QsciScintilla.WsVisibleAfterIndent) - else: - self.setWhitespaceVisibility(QsciScintilla.WsInvisible)     def reflowBlock(self, line):   lines = self.text().split('\n', QString.KeepEmptyParts) @@ -436,6 +428,7 @@
  self.msgcombo.reset(self.msghistory)   self.userhist = s.value('commit/userhist').toStringList()   self.userhist = [u for u in self.userhist if u] + self.msgte.loadSettings(s, 'commit/msgte')   try:   curmsg = self.repo.opener('cur-message.txt').read()   self.setMessage(hglib.tounicode(curmsg)) @@ -454,6 +447,7 @@
  s.setValue('commit/history-'+repoid, self.msghistory)   s.setValue('commit/split', self.split.saveState())   s.setValue('commit/userhist', self.userhist) + self.msgte.saveSettings(s, 'commit/msgte')   try:   if self.qref:   # don't store patch summary as current working comment