[darcs-devel] [issue1541] Darcs is confused slightly by file renaming that changes only case, on case-insensitive file systems

Taylor R Campbell bugs at darcs.net
Tue Aug 18 19:00:30 UTC 2009


New submission from Taylor R Campbell <campbell at mumble.net>:

The last couple of times I ran `darcs pull' in my local copy of the
repository at <http://darcs.net/unstable/>, in which I have never done
anything but `darcs pull' and non-destructive commands such as `darcs
changes', Darcs made some backup files.  When I pulled some weeks ago,
it made Setup.hs-darcs-backup0 and tests/EXAMPLE.sh-darcs-backup0;
when I pulled few minutes ago, it made src/Preproc.hs-darcs-backup0.

At <http://paste.lisp.org/display/85602> is a transcript of my recent
update.  I ran `darcs revert' after I saw the original backup files,
and wanted to ensure that any edits I had made were reverted before I
pulled (although I am pretty sure that I had never edited any files in
the repository).

Eric Kow suggested that this was because those files had been renamed,
but with changes only to the case of the characters in their names,
and I am using Darcs on a case-insensitive file system (HFS+).  Thus
Darcs saw that there already was a file by the target name and backed
it up before writing the same file again.  So this seems harmless,
although slightly confusing.  Perhaps Darcs could detect this
situation and either not back up the file on case-insensitive file
systems, or, to be safer, just check whether the two names are
equivalent under case-folding, and if they are, say so when emitting a
message about backing the file up.

----------
messages: 8262
nosy: campbell, dmitry.kurochkin, kowey, simon, thorkilnaur
status: unread
title: Darcs is confused slightly by file renaming that changes only case, on case-insensitive file systems

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1541>
__________________________________


More information about the darcs-devel mailing list