[darcs-devel] [darcs #247] a file named "\" confuses darcs

zooko at zooko.com via RT bugs at darcs.net
Mon Mar 7 06:12:09 PST 2005


Mon Mar 07 09:12:08 2005: New ticket: 247.
Transaction: Ticket created by zooko at zooko.com
       Queue: Darcs
     Subject: a file named "\" confuses darcs
       Owner: Nobody
  Requestors: zooko at zooko.com
      Status: new
 Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=247 >

mkdir tmp
draco:~ zooko$ cd tmp
draco:~/tmp zooko$ darcs init
draco:~/tmp zooko$ touch \\
draco:~/tmp zooko$ ls -al
total 0
drwxrwxr-x    4 zooko  staff    136  7 Mar 10:10 .
drwxr-xr-x  311 zooko  staff  10574  7 Mar 10:10 ..
-rw-rw-r--    1 zooko  staff      0  7 Mar 10:10 \
drwxrwxr-x    7 zooko  staff    238  7 Mar 10:10 _darcs
draco:~/tmp zooko$ darcs add ./] \\
draco:~/tmp zooko$ darcs remove    cord
Darcs needs to know what name (conventionally an email address) to use 
as the
patch author, e.g. 'Fred Bloggs <fred at bloggs.invalid>'.  If you provide 
one
now it will be stored in the file '_darcs/prefs/author' and used as a 
default
in the future.  To change your preferred author address, simply delete 
or edit
this file.

What is your email address? foo
Ok, if you don't want to record anything, that's fine!
draco:~/tmp zooko$ n ls -a       ls -al
total 0
drwxrwxr-x    4 zooko  staff    136  7 Mar 10:10 .
drwxr-xr-x  311 zooko  staff  10574  7 Mar 10:10 ..
-rw-rw-r--    1 zooko  staff      0  7 Mar 10:10 \
drwxrwxr-x    7 zooko  staff    238  7 Mar 10:10 _darcs
draco:~/tmp zooko$ darcs whatsnew
No changes!
draco:~/tmp zooko$ darcs add ./\\
The following file is already in the repository;
note that to ensure portability we don't allow
files that differ only in case:
\
draco:~/tmp zooko$ darcs changes
draco:~/tmp zooko$ darcstouch hellofile
draco:~/tmp zooko$ darcs add hellofile
draco:~/tmp zooko$ darcs record
addfile ./hellofile
Shall I record this patch? (1/1) [ynWsfqadjk], or ? for help: y
What is the patch name? whee
Do you want to add a long comment? [yn] n
Finished recording patch 'whee'
draco:~/tmp zooko$ darcs mv hellofile otherfilename

Fail: /Users/zooko/tmp/\: getDirectoryContents: inappropriate type (Not 
a directory)

draco:~/tmp zooko$ 





More information about the darcs-devel mailing list