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

Sune Foldager cryo at cyanite.org
Wed Nov 25 02:19:32 CST 2009


Greg Ward wrote:
> Again, consider the poor Windows users: maybe one of them will want to
> edit .hg/last-message.txt with Notepad.  If we write it with "wb",
> then the \n chars in memory will become \n chars on disk, and Notepad
> will be unhappy.

But then again, any programmer or developer of some kind... and indeed
anyone who should be using Mercurial would know not to use that piece of
crap that is notepad :-p. They can at least use some free light-weight
alternatives like notepad2 or similar, which understands \n.

Personally, I don't think .txt is important either, as I would always
just invoke my editor on the file from a shell. Seems a bit weird to
navigate into a 'secret' folder like .hg in a file explorer anyway.

:) Sune



More information about the Mercurial-devel mailing list