darcs

Issue 253 darcs should warn if you are recording a file with different case than pristine

Title darcs should warn if you are recording a file with different case than pristine
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, markstos, thorkilnaur, tommy
Assigned To
Topics ProbablyEasy

Created on 2006-08-29.17:21:40 by kowey, last changed 2009-08-27.14:31:08 by admin.

Messages
msg940 (view) Author: kowey Date: 2006-08-29.17:21:36
Try this on a case insensitive system:

darcs init
touch foo
darcs add FOO
cat _darcs/prefs/patches/pending

Notice that it lets you use the wrong case in a record

It should probably have some way of noticing that while file "FOO" is actually
supposed to be called "foo".  And it should warn you that you are potentially
doing something silly.

Note that this might be related to other case-sensitivity bugs like issue234
(which I have been unable to reproduce lacking the exact 'recipe')

I'll bet that implementing this is easy (just a check in Add.lhs. I'm not sure
what to call the switch for this; maybe extending --case-ok will be good)
msg2877 (view) Author: markstos Date: 2008-01-30.01:18:47
This "wish" seems to be saying that darcs should care about what case a file is,
even on file systems that don't care. (And maybe it should because darcs
projects can be cross-platform). 

However, I don't see how you can use a "wrong case in a record" when according
to the filesystem, either case is correct. 

I'm comfortable with resolving this as "not-our-bug", considering we already
have "--case-ok" to partially address this issue, and case-sensitivy issues are
improved some Darcs2 and the new repo format.
msg2908 (view) Author: droundy Date: 2008-01-30.16:52:10
I'm not sure what the best semantics for this situation would be.  Eric's
suggestion isn't bad:  warn when darcs' view of the case of a file differs from
what's in the working directory.  I think we could do this in coslurp without
too much trouble.  I'm not sure how worthwhile it is, though.

David
msg8424 (view) Author: kowey Date: 2009-08-23.18:46:18
I guess this isn't worth the trouble.
History
Date User Action Args
2006-08-29 17:21:40koweycreate
2008-01-30 01:18:48markstossetstatus: unread -> unknown
nosy: + markstos, beschmi
messages: + msg2877
2008-01-30 16:52:11droundysetnosy: droundy, tommy, beschmi, kowey, markstos
messages: + msg2908
2008-01-30 20:54:31markstossetstatus: unknown -> deferred
nosy: droundy, tommy, beschmi, kowey, markstos
2009-08-06 17:34:44adminsetnosy: + jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, thorkilnaur, - droundy
2009-08-06 20:51:34adminsetnosy: - beschmi
2009-08-10 21:55:00adminsetnosy: - darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-11 00:28:14koweysetstatus: deferred -> unknown
nosy: tommy, kowey, markstos, simon, thorkilnaur, dmitry.kurochkin
2009-08-23 18:46:21koweysetstatus: unknown -> wont-fix
nosy: tommy, kowey, markstos, simon, thorkilnaur, dmitry.kurochkin
messages: + msg8424
title: darcs should warn you if you are recording a file with the wrong case -> darcs should warn if you are recording a file with different case than pristine
2009-08-25 17:49:15adminsetnosy: + darcs-devel, - simon
2009-08-27 14:31:08adminsetnosy: tommy, kowey, markstos, darcs-devel, thorkilnaur, dmitry.kurochkin