Re: Darcs modification set not working?
Florian Gilcher <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Phil,
nice to meet a fellow darcs user ;).
I haven't used the darcs modificationset for a while, but from looking
at the source, i suspect that the following
liines in sourcecontrols/darcs.java are the problem:
139 command.createArgument("changes");
140 command.createArgument("--xml-output");
141 command.createArgument("--match");
142 command.createArgument("--matches");
143 command.createArgument("date \"" +
DARCS_DATE_FORMAT_IN.format(lastBuild) + "/"
144 + DARCS_DATE_FORMAT_IN.format(checkTime) + "\"");
Darcs doesn't have a --match command, but happily accepts a short
form. So --match is interpreted as --matches and given the argument --
matches. (which doesn't make sense at all)
Eliminating line 141 should solve your problem. I don't have CC here
to test, sorry.
I would suggest building CC from svn source (if you can). The
repository also contains a darcsbootstrapper that I implemented a
while ago, I would love to see it tested.
Regards,
Florian Gilcher
On Aug 13, 2009, at 3:08 AM, [email protected] wrote:
> Hi,
>
>
> I can't seem to get the darcs repository modificationset to work.
> Log suggests it passing a dodgy command to darcs - sticking debug
> logs on doesn't give me anything else.
>
> I tried using both options and giving the local file location and
> the http address of my repository. Always the same message.
>
> Anyone else got this working? Any ideas?
>
> I'm running the latest binary build on Ubuntu. With darcs 2.2.0 (I
> also tried 1.9.0 - same error).
>
> Many Thanks,
>
> Phil.
>
>
>
>
> [cc]Aug-13 00:50:12 BuildQueue - now adding to the thread queue:
> OptionCalculator
> [cc]Aug-13 00:50:12 Project - Project OptionCalculator:
> bootstrapping
> [cc]Aug-13 00:50:12 jectController- OptionCalculator Controller:
> build progress event: bootstrapping
> [cc]Aug-13 00:50:12 ScriptRunner - Pulling from "/home/phil/repos/
> mainlines/OptionCalculator"...
> [cc]Aug-13 00:50:12 ScriptRunner - No remote changes to pull in!
> [cc]Aug-13 00:50:12 ecBootstrapper- ExecBootstrapper successful.
> [cc]Aug-13 00:50:12 Project - Project OptionCalculator:
> checking for modifications
> [cc]Aug-13 00:50:12 jectController- OptionCalculator Controller:
> build progress event: checking for modifications
> [cc]Aug-13 00:50:12 Darcs -
> [cc]Aug-13 00:50:12 Darcs - darcs failed: Invalid --match
> pattern '--matches'.
> [cc]Aug-13 00:50:12 Darcs - "match" (line 1, column 1):
> [cc]Aug-13 00:50:12 Darcs - unexpected "-"
> [cc]Aug-13 00:50:12 Darcs - expecting match rule or end
> of input
> [cc]Aug-13 00:50:12 Darcs -
> [cc]Aug-13 00:50:12 Darcs - Failed to execute darcs changes
> command
> org.jdom.input.JDOMParseException: Error on line -1: Premature end
> of file.
>
>
>
>
> <project name="OptionCalculator">
>
> <listeners>
> <currentbuildstatuslistener file="logs/${project.name}/
> status.txt" />
> </listeners>
>
> <modificationset quietperiod="60">
> <darcs workingdir="../../repos/mainlines/${project.name}" />
> </modificationset>
>
> <bootstrappers>
> <execbootstrapper command="/usr/bin/darcs" args="pull"
> workingdir="../workarea/${project.name}" errorstr="failed" />
> </bootstrappers>
>
>
> <schedule interval="120">
> <exec command="/usr/bin/make" workingdir="../workarea/$
> {project.name}" args="OptionCalculator.jpg build=profile"
> errorstr="failed" />
> </schedule>
>
> </project>
> </cruisecontrol>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user