Changeset 5e529d44b135…
Parent eb6988f58a25…
by
Changes to one file · Browse files at 5e529d44b135 Showing diff from parent eb6988f58a25 Diff from another changeset...
@@ -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):
|
Loading...