Submitter | Alexander Drozdov |
---|---|
Date | Feb. 7, 2014, 4:26 a.m. |
Message ID | <01079ca49c16f7c0c3d5.1391747160@localhost6.localdomain6> |
Download | mbox | patch |
Permalink | /patch/3506/ |
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)