[darcs-devel] [patch503] Don't require --darcs when it's not needed in darcs-te...

Eric Kow kowey at darcs.net
Wed Dec 15 10:53:01 UTC 2010


On Wed, Dec 15, 2010 at 07:28:13 +0000, Florent Becker wrote:
> Fri Dec 10 17:02:00 CET 2010  Florent Becker <florent.becker at ens-lyon.org>
>   * Don't require --darcs when it's not needed in darcs-test executable

Applied, thanks.

Don't require --darcs when it's not needed in darcs-test executable
-------------------------------------------------------------------
> - -    when (null (darcs conf)) $ fail ("No darcs specified. Perhaps --darcs `pwd`/dist/build/darcs/darcs?")
> - -    when (not (isAbsolute (darcs conf))) $ fail ("Argument to --darcs should be an absolute path")
> +    when (shell conf || network conf || failing conf) $ do
> +      when (null $ darcs conf) $
> +        fail ("No darcs specified. Perhaps --darcs `pwd`/dist/build/darcs/darcs?")
> +      when (not (isAbsolute (darcs conf))) $
> +        fail ("Argument to --darcs should be an absolute path")

Only require --darcs if we're actually calling darcs (ie. in some kind
of shell test)

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey at jabber.fr (Jabber or Google Talk only)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20101215/106117d7/attachment.pgp>


More information about the darcs-devel mailing list