darcs

Issue 90 darcs commands struggle with less-common filenames

Title darcs commands struggle with less-common filenames
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jch, jonathon, kapheine, kowey, thorkilnaur, tommy
Assigned To
Topics

Created on 2006-01-10.13:19:19 by jonathon, last changed 2009-08-27.13:46:52 by admin.

Messages
msg350 (view) Author: jonathon Date: 2006-01-10.13:19:18
I just discovered that 'darcs mv' does _not_ play nice with filenames containg a
plus sign (+); it consistently states "darcs failed:  There is no file or dir
named my+file.h in the repository." The whatsnew command worked fine on it,
though, and I was able to get it into the repository with no issues (presumably
with 'record -l'; I don't remember now).

This is a major problem -- if darcs refuses to work with some files, it is
useless. The '+' notation is commonly used in the filenames of Objective-C
categories. Similar issues also exist, such as issue 65 relating to 'annotate'
(submitted by me).

It has been stated many times on the mailing lists that darcs treats filenames
as byte sequences (and not, say, UTF-8). If this is the case, every command
should treat every filename equally. Or at least the same filename equally.

As a workaround, I edited the pending file myself with no ill effects (darcs
says it's consistent).
msg377 (view) Author: kapheine Date: 2006-01-16.01:00:45
Can you give us more details?  I just tried this in Linux using the latest build
of darcs-unstable and I was unable to reproduce it.  I created a repository,
added a file named one+two, recorded, and did a mv of one+two to three, and it
all worked.

Make sure your shell isn't doing any manipulation of the filename, too.
msg539 (view) Author: jch Date: 2006-03-03.16:02:50
Sorry, I cannot reproduce this either.  Please reopen this bug if you can
reproduce it with 1.0.6.

If you're under Windows, please reopen it and add the topic Windows.
msg553 (view) Author: jonathon Date: 2006-03-04.06:52:18
Yes, this seems to be fixed as of darcs 1.0.6.
History
Date User Action Args
2006-01-10 13:19:19jonathoncreate
2006-01-16 01:00:45kapheinesetstatus: unread -> unknown
nosy: + kapheine
messages: + msg377
2006-03-03 16:02:51jchsetpriority: urgent -> bug
status: unknown -> resolved
messages: + msg539
nosy: + jch
2006-03-04 06:51:26jonathonsetstatus: resolved -> unknown
nosy: droundy, jch, tommy, kapheine, jonathon
messages: + msg552
2006-03-04 06:52:18jonathonsetstatus: unknown -> resolved-in-stable
nosy: droundy, jch, tommy, kapheine, jonathon
messages: + msg553
2006-03-04 06:52:27jonathonsetnosy: droundy, jch, tommy, kapheine, jonathon
messages: - msg552
2006-03-04 10:14:38tommysetstatus: resolved-in-stable -> resolved
nosy: droundy, jch, tommy, kapheine, jonathon
2009-08-06 17:34:57adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, dagit, mornfall, simon, kowey, beschmi, thorkilnaur, - droundy, jch, kapheine, jonathon
2009-08-06 20:47:59adminsetnosy: - beschmi
2009-08-10 22:21:13adminsetnosy: + kapheine, jonathon, jch, - markstos, darcs-devel, zooko, jast, dagit, Serware, mornfall
2009-08-25 17:49:22adminsetnosy: + darcs-devel, - simon
2009-08-27 13:46:52adminsetnosy: jch, tommy, kowey, darcs-devel, kapheine, jonathon, thorkilnaur, dmitry.kurochkin