Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgemail: replace all relative imports

Changeset 2e272af1f208

Parent b6b332b16a3f

by Steve Borho

Changes to one file · Browse files at 2e272af1f208 Showing diff from parent b6b332b16a3f Diff from another changeset...

Change 1 of 4 Show Entire File hggtk/​hgemail.py Stacked
 
15
16
17
18
19
 
20
21
22
 
23
24
25
 
277
278
279
280
281
 
282
283
284
 
321
322
323
324
325
326
327
 
328
329
330
 
371
372
373
374
375
 
376
377
378
 
15
16
17
 
 
18
19
 
 
20
21
22
23
 
275
276
277
 
 
278
279
280
281
 
318
319
320
 
321
322
 
323
324
325
326
 
367
368
369
 
 
370
371
372
373
@@ -15,11 +15,9 @@
 from mercurial import hg, ui, extensions    from thgutil.i18n import _ -from thgutil import hglib -from thgutil import shlib +from thgutil import hglib, shlib   -from hggtk import gtklib -from hggtk import dialog +from hggtk import gtklib, dialog, thgconfig, hgcmd    class EmailDialog(gtk.Window):   """ Send patches or bundles via email """ @@ -277,8 +275,7 @@
  self._diffstat.set_sensitive(False)     def _on_conf_clicked(self, button): - from thgconfig import ConfigDialog - dlg = ConfigDialog(False) + dlg = thgconfig.ConfigDialog(False)   dlg.show_all()   dlg.focus_field('email.from')   dlg.run() @@ -321,10 +318,9 @@
    if self.repo.ui.config('email', 'method', 'smtp') == 'smtp' and not test:   if not self.repo.ui.config('smtp', 'host'): - from thgconfig import ConfigDialog   dialog.info_dialog(self, _('Info required'),   _('You must configure SMTP')) - dlg = ConfigDialog(False) + dlg = thgconfig.ConfigDialog(False)   dlg.show_all()   dlg.focus_field('smtp.host')   dlg.run() @@ -371,8 +367,7 @@
  cmdline += ['--desc', tmpfile]   cmdline.extend(self.revargs)   - from hgcmd import CmdDialog - dlg = CmdDialog(cmdline) + dlg = hgcmd.CmdDialog(cmdline)   dlg.show_all()   dlg.run()   dlg.hide()