On Fri, Apr 24, 2009 at 09:35:47AM +0400, Dmitry Kurochkin wrote: > 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.
OK. Turning the strict read into a checksum would mean that you could GC that before opening the editor -- probably not necessary unless the patch description file is huge (unlikely). > Do you no suitable functions for computing file checksum? I don't. _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
