Submitter | Alexander Drozdov |
---|---|
Date | Feb. 10, 2014, 3:18 a.m. |
Message ID | <e74e44b95b9986dec38f.1392002292@localhost6.localdomain6> |
Download | mbox | patch |
Permalink | /patch/3536/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -720,10 +720,16 @@ f.write(text) f.close() + environ = {'HGUSER': user} + for label in ('source', 'rebase_source'): + if label in extra: + environ.update({'HGREVISION': extra[label]}) + break + editor = self.geteditor() util.system("%s \"%s\"" % (editor, name), - environ={'HGUSER': user}, + environ=environ, onerr=util.Abort, errprefix=_("edit failed"), out=self.fout)