Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/hgemail: use Settings class for history management

Changeset e8c481854f07

Parent be9114b959cc

by TK Soh

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

Change 1 of 2 Show Entire File hggtk/​hgemail.py Stacked
 
194
195
196
197
 
198
199
200
 
281
282
283
284
 
285
286
287
288
289
 
290
291
292
 
194
195
196
 
197
198
199
200
 
281
282
283
 
284
285
286
287
288
 
289
290
291
292
@@ -194,7 +194,7 @@
  for v in history[cpath]:   vlist.append([v])   - history = shlib.read_history() + history = shlib.Settings('config_history')   try:   repo = hg.repository(ui.ui(), path=self.root)   self.repo = repo @@ -281,12 +281,12 @@
  self._refresh(False)   return   - history = shlib.read_history() + history = shlib.Settings('config_history')   record_new_value('email.to', history, totext)   record_new_value('email.cc', history, cctext)   record_new_value('email.from', history, fromtext)   record_new_value('email.subject', history, subjtext) - shlib.save_history(history) + history.write()     cmdline = ['hg', 'email', '-f', fromtext, '-t', totext, '-c', cctext]   cmdline += ['--repository', self.repo.root]