view mercurial/templates/rss/error.tmpl @ 21238:25d6fdc0294a

context: move editor invocation from "makememctx()" to "memctx.__init__()" This patch introduces "editor" argument to "memctx.__init__()", and moves editor invocation from "makememctx()" to "memctx.__init__()", to centralize editor invocation into "memctx" object creation. This relocation is needed, because "makememctx()" requires the "store" object providing "getfile()" to create "memfilectx" object, and this prevents some code paths from using "makememctx()" instead of "memctx.__init__()". This patch also invokes "localrepository.savecommitmessage()", when "editor" is specified explicitly, to centralize saving commit message into "memctx" object creation: passing "cmdutil.commiteditor" as "editor" can achieve both suppressing editor invocation and saving into ".hg/last-message.txt" for non empty commit messages.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 05 May 2014 21:26:40 +0900
parents f91e5630ce7e
children 4b0fc75f9403
line wrap: on
line source

{header}
    <title>Error</title>
    <description>Error</description>
    <item>
      <title>Error</title>
      <description>{error|escape}</description>
      <guid>http://mercurial.selenic.com/#error</guid>
    </item>
  </channel>
</rss>