On Fri, Apr 24, 2009 at 5:17 AM, Trent W. Buck <[email protected]> wrote: > Dmitry Kurochkin <[email protected]> writes: >> Of course sometimes I want to cancel after saving I edited the >> description. But that is a rare case. And no amount of additional >> confirmations is going to save you from been inattentive. > > Thanks to this patch, a workaround there would be to delete the changes > that you just added, so the file's cksum stays the same. (I assume > you're detecting editedness with a cksum, rather than with mtime.)
No, we just read full file content using strict ByteString before and after edit. And compare it. Do you no suitable functions for computing file checksum? Regards, Dmitry > > _______________________________________________ > darcs-users mailing list > [email protected] > http://lists.osuosl.org/mailman/listinfo/darcs-users > _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
