[PATCH 1 of 2] commit: save commit message so it's not destroyed by rollback

Nicolas Dumazet nicdumz at gmail.com
Tue Nov 24 21:52:39 CST 2009


Sorry to come in late.
I figured out today that we have a very similar usecase with patchbomb.

Let's say you do a
  hg email [...] -n
to first double check the output before sending your series.
Or that you abort mail sending before it's sent because you forgot something (!)

In those two cases it would be interesting to have the introduction
email saved somewhere, without asking the user to add some kind of
editor mechanism to save his message, if hypothetically, he needs it
later.

It strikes me as something quite similar to the problem we are trying
to solve here. Is it?

If we have similarities, it might be interesting to modify a bit
ui.edit() to add some parameters to make it generic, for example to
allow specifying a file path, and/or add a flag to define if file
content should be loaded.

-- 
Nicolas Dumazet — NicDumZ


More information about the Mercurial-devel mailing list