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

hgemail: reset PAGER environment variable

This works around some wonky code in the patchbomb extension

Changeset 5e529d44b135

Parent eb6988f58a25

by Steve Borho

Changes to one file · Browse files at 5e529d44b135 Showing diff from parent eb6988f58a25 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgemail.py Stacked
 
323
324
325
 
326
 
 
327
328
329
 
353
354
355
 
 
356
357
358
 
323
324
325
326
327
328
329
330
331
332
 
356
357
358
359
360
361
362
363
@@ -323,7 +323,10 @@
    cmdline = ['hg', 'email', '-f', fromtext, '-t', totext, '-c', cctext]   cmdline += ['--repository', self.repo.root] + oldpager = os.environ.get('PAGER')   if test: + if oldpager: + del os.environ['PAGER']   cmdline.insert(2, '--test')   if subjtext:   cmdline += ['--subject', subjtext] @@ -353,6 +356,8 @@
  dlg.run()   dlg.hide()   finally: + if oldpager: + os.environ['PAGER'] = oldpager   os.unlink(tmpfile)    def run(root='', **opts):