[darcs-devel] [issue1416] darcs' tempfile behaviour sucks
Trent Buck
bugs at darcs.net
Mon Apr 6 03:37:08 UTC 2009
New submission from Trent Buck <trentbuck at gmail.com>:
Completely at odds with norma Unix behaviour, Darcs has a habit of
creating temporary files in the working tree, instead of in $TMPDIR or
/tmp. Nor do they have mkstemp-style names (-0 instead of .XXXXXX).
This confuses our users, e.g.
13:35 <dino-> I just did a darcs tag with long comment. What is the 'darcs-tag-0' file that it left in the project root dir about?
13:36 <dino-> Is that normal?
13:36 <twb> dino-: it's a backup file :-(
13:36 <twb> Darcs is stupid and doesn't know how to name backup files properly, or to put them in $TMPDIR
13:36 <dino-> The tag otherwise seemed to work, looks fine in cha output
13:37 <dino-> So harmless bug?
13:37 <twb> dino-: basically you can just delete that file
AFAIK these files are also not in the default boring list (so darcs
add and darcs record -l want to version control them), and often they
are not deleted. Presumably the excuse for this is to avoid data
loss, but IMO the current behaviour is excessive.
----------
messages: 7580
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, twb
status: unread
title: darcs' tempfile behaviour sucks
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1416>
__________________________________
More information about the darcs-devel
mailing list