Hello to the list.

I've been studying Haskell for a few months but am still pretty new to
the language. I'm here because I'd like to try contributing to darcs.

As per the DevloperFAQ on the wiki, I poked around in a couple of the
ProbablyEasy bugs. I have a couple of questions..


---
issue 88
darcs add could stop recursing after parent directory fails.
http://bugs.darcs.net/issue88

I don't see the output listed in the bug. I see this, which looks like
it does stop trying right away:

   $ darcs init
   $ darcs add ./a/b/c.wiki
   darcs: a: getSymbolicLinkStatus: does not exist (No such file or
   directory)

Looks like something has changed and maybe this is resolved. I tried
with darcs 1.0.8 both (released) and (unstable branch) under Linux.


---
issue 203
darcs mv --case-ok suggestion
http://bugs.darcs.net/issue203

This one looks like it's been worked on as well. In Mv.lhs (function
check_new_and_old_filenames):

  else "A file or dir named "++new++" (or perhaps differing"++
           " only in case)\nalready exists in "++
           what_slurpy ++ ".\n"++
           "Use --case-ok to allow files differing only in case."


I was thinking about it, and if nobody thinks it's too nitpicky, it would
be somewhat better if the string literal "--case-ok" wasn't used here
(and also in Add.lhs)  I was tinkering with some code as shown below to
extract the long option name programmatically.

I think this would be more robust, in the (admittedly unlikely) event
that the "case-ok" string were to be changed in the DarcsOption, it
would only have to change in that one place.

New code I was working on:

  else "A file or dir named "++new++" (or perhaps differing"++
           " only in case)\nalready exists in "++
           what_slurpy ++ ".\nUse " ++
           (get_long_option $ head $
              option_from_darcsoption allow_caseonly) ++
           " to allow files differing only in case."

This is using DarcsCommands.get_long_option and
DarcsArguments.option_from_darcsoption


--
 .~.    Dino Morelli
 /V\    email: [EMAIL PROTECTED]
/( )\   irc: dwm
^^-^^   preferred distro: Debian GNU/Linux  http://www.debian.org

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to