Mon, 10 Dec 2007 10:24:29 -0600 commit: avoid losing edits during commit
Matt Mackall <mpm@selenic.com> [Mon, 10 Dec 2007 10:24:29 -0600] rev 5637
commit: avoid losing edits during commit If a file is edited between the time we record file states in the repo and update the dirstate, that change can be lost to hg status. Because we invoke the editor between these two points, that window can be arbitrarily large. This greatly shrinks the window by recording the commit change immediately. If our checkin fails, we simply invalidate the dirstate.
(0) -3000 -1000 -300 -100 -30 -10 -1 +1 +10 +30 +100 +300 +1000 +3000 +10000 +30000 tip