Show More
@@ -814,10 +814,9 b' class ui(object):' | |||
|
814 | 814 | |
|
815 | 815 | editor = self.geteditor() |
|
816 | 816 | |
|
817 |
|
|
|
817 | self.system("%s \"%s\"" % (editor, name), | |
|
818 | 818 | environ=environ, |
|
819 |
onerr=util.Abort, errprefix=_("edit failed") |
|
|
820 | out=self.fout) | |
|
819 | onerr=util.Abort, errprefix=_("edit failed")) | |
|
821 | 820 | |
|
822 | 821 | f = open(name) |
|
823 | 822 | t = f.read() |
@@ -827,6 +826,13 b' class ui(object):' | |||
|
827 | 826 | |
|
828 | 827 | return t |
|
829 | 828 | |
|
829 | def system(self, cmd, environ={}, cwd=None, onerr=None, errprefix=None): | |
|
830 | '''execute shell command with appropriate output stream. command | |
|
831 | output will be redirected if fout is not stdout. | |
|
832 | ''' | |
|
833 | return util.system(cmd, environ=environ, cwd=cwd, onerr=onerr, | |
|
834 | errprefix=errprefix, out=self.fout) | |
|
835 | ||
|
830 | 836 | def traceback(self, exc=None, force=False): |
|
831 | 837 | '''print exception traceback if traceback printing enabled or forced. |
|
832 | 838 | only to call in exception handler. returns true if traceback |
General Comments 0
You need to be logged in to leave comments.
Login now