Show More
@@ -971,12 +971,15 b' class ui(object):' | |||
|
971 | 971 | self.write(*msg, **opts) |
|
972 | 972 | |
|
973 | 973 | def edit(self, text, user, extra=None, editform=None, pending=None): |
|
974 |
extra_defaults = { |
|
|
974 | extra_defaults = { | |
|
975 | 'prefix': 'editor', | |
|
976 | 'suffix': '.txt', | |
|
977 | } | |
|
975 | 978 | if extra is not None: |
|
976 | 979 | extra_defaults.update(extra) |
|
977 | 980 | extra = extra_defaults |
|
978 | 981 | (fd, name) = tempfile.mkstemp(prefix='hg-' + extra['prefix'] + '-', |
|
979 |
suffix= |
|
|
982 | suffix=extra['suffix'], text=True) | |
|
980 | 983 | try: |
|
981 | 984 | f = os.fdopen(fd, "w") |
|
982 | 985 | f.write(text) |
General Comments 0
You need to be logged in to leave comments.
Login now