Show More
@@ -814,10 +814,9 b' class ui(object):' | |||||
814 |
|
814 | |||
815 | editor = self.geteditor() |
|
815 | editor = self.geteditor() | |
816 |
|
816 | |||
817 |
|
|
817 | self.system("%s \"%s\"" % (editor, name), | |
818 | environ=environ, |
|
818 | environ=environ, | |
819 |
onerr=util.Abort, errprefix=_("edit failed") |
|
819 | onerr=util.Abort, errprefix=_("edit failed")) | |
820 | out=self.fout) |
|
|||
821 |
|
820 | |||
822 | f = open(name) |
|
821 | f = open(name) | |
823 | t = f.read() |
|
822 | t = f.read() | |
@@ -827,6 +826,13 b' class ui(object):' | |||||
827 |
|
826 | |||
828 | return t |
|
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 | def traceback(self, exc=None, force=False): |
|
836 | def traceback(self, exc=None, force=False): | |
831 | '''print exception traceback if traceback printing enabled or forced. |
|
837 | '''print exception traceback if traceback printing enabled or forced. | |
832 | only to call in exception handler. returns true if traceback |
|
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