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

commit: reload msgformat settings when tool exits

Changeset 053cafeb5ba0

Parent 7d631a336803

by Steve Borho

Changes to 2 files · Browse files at 053cafeb5ba0 Showing diff from parent 7d631a336803 Diff from another changeset...

 
240
241
242
243
244
 
 
 
 
245
246
247
 
240
241
242
 
 
243
244
245
246
247
248
249
@@ -240,8 +240,10 @@
  def settings():   from tortoisehg.hgqt.settings import SettingsDialog   dlg = SettingsDialog(True, focus='tortoisehg.summarylen') - # TODO: refresh UI instances, make a hglib func for it - return dlg.exec_() + if dlg.exec_() == QDialog.Accepted: + repo = self.stwidget.repo + repo.ui = hglib.reloadui(repo.root) + self.msgChanged()     menu = self.msgte.createStandardContextMenu()   for name, func in [(_('Paste &Filenames'), paste),
 
211
212
213
 
 
 
 
 
 
214
215
216
 
211
212
213
214
215
216
217
218
219
220
221
222
@@ -211,6 +211,12 @@
  if 'mq' in repo.__dict__: #do not create if it does not exist   repo.mq.invalidate()   +def reloadui(root = None): + u = ui.ui() + if root: + u.readconfig(os.path.join(root, '.hg', 'hgrc')) + return u +  def loadextension(ui, name):   # Between Mercurial revisions 1.2 and 1.3, extensions.load() stopped   # calling uisetup() after loading an extension. This could do