[darcs-devel] Greetings and some questions

Dino Morelli dino at ui3.info
Sun Oct 1 19:16:16 PDT 2006


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: dino at ui3.info
/( )\   irc: dwm
^^-^^   preferred distro: Debian GNU/Linux  http://www.debian.org




More information about the darcs-devel mailing list