Mercurial > hg-stable
changeset 20603:cc76c619bed6
ui: allow edit() to work with revision extras
Make edit() to accept optional 'extra' dictionary. Revision extras will be
used in upcoming patches to set some environment variables.
author | Alexander Drozdov <al.drozdov@gmail.com> |
---|---|
date | Thu, 06 Feb 2014 11:38:28 +0400 |
parents | 8a2dfac89ad6 |
children | 4991cfc90f59 |
files | mercurial/ui.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/ui.py Fri Feb 14 00:36:44 2014 +0100 +++ b/mercurial/ui.py Thu Feb 06 11:38:28 2014 +0400 @@ -714,7 +714,7 @@ if self.debugflag: opts['label'] = opts.get('label', '') + ' ui.debug' self.write(*msg, **opts) - def edit(self, text, user): + def edit(self, text, user, extra={}): (fd, name) = tempfile.mkstemp(prefix="hg-editor-", suffix=".txt", text=True) try: