darcs

Patch 59 835 - show file with file directory arguments

Title 835 - show file with file directory arguments
Superseder resolve issue835 show file with file directory arguments
View: 93
Nosy List darcs-users, kowey, volothamp
Related Issues
Status obsoleted Assigned To
Milestone

Created on 2009-11-14.16:16:02 by volothamp, last changed 2009-11-19.09:41:41 by galbolle.

Files
File name Status Uploaded Type Edit Remove
835 volothamp, 2009-11-14.16:16:01 application/octet-stream
unnamed volothamp, 2009-11-14.16:16:01 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg9275 (view) Author: volothamp Date: 2009-11-14.16:16:01
:)
Attachments
msg9292 (view) Author: kowey Date: 2009-11-15.09:05:05
Hi!

May I request some small modifications to this patch?

Sat Nov 14 17:13:33 CET 2009  Luca Molteni <volothamp@gmail.com>
  * 835 - show file with file directory arguments

835 - show file with file directory arguments
-----------------------------------------------
Please rename that to

resolve issue835: show file with file directory arguments

> -  command_extra_args = 0,
> +  command_extra_args = -1,

What does this do?

> hunk ./src/Darcs/Commands/ShowFiles.lhs 92
> -manifest_cmd to_list opts _ = do
> +manifest_cmd to_list opts argList = do
> hunk ./src/Darcs/Commands/ShowFiles.lhs 94
> -    mapM_ output list
> +    case argList of 

You have a bit of trailing whitespace here (which I would normally just
remove in a follow-up patch, but since I'm requesting modifications
anyway, I thought I'd point it out :-))

> +        [] -> mapM_ output list
> +        (x:[]) -> mapM_ output (onlysubdirs x list)

Ah, but this appears to be missing the case where you have more than one
argument.  I think it's fine to just complain to the user

> hunk ./src/Darcs/Commands/ShowFiles.lhs 102
> +          onlysubdirs subdir = filter (\x -> (subdir `isPrefixOf` (x ++ "/")) || (subdir == x))

Looks fine to me.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
History
Date User Action Args
2009-11-14 16:16:02volothampcreate
2009-11-15 08:57:52koweysetstatus: needs-review -> review-in-progress
2009-11-15 09:05:36koweysetstatus: review-in-progress -> followup-requested
nosy: + kowey
messages: + msg9292
2009-11-19 09:41:28galbollesetsuperseder: + resolve issue835 show file with file directory arguments
2009-11-19 09:41:41galbollesetstatus: followup-requested -> obsoleted