[darcs-users] informal poll: do you script interactive darcs?

David Leuschner david.leuschner at googlemail.com
Wed Dec 28 10:38:16 UTC 2011


Hi Eric,

we feed darcs input from scripts.  For example on our integration
server we pull the next patch from an incoming repository and unpull
patches that have been amended in the incoming repository.  This is
all quick and dirty code that tends to break sometimes (not because of
darcs interaction but because of other assumptions that only hold in
95% of the cases and the 5% are too hard to automate).  For real
software, like the "darcs patch manager" we compile against darcs. (We
use DPM in combination with Rietveld to do our reviews and track what
needs to be done for which submitted patch.)

We'd love user interface improvements and wouldn't mind updating our
dirty scripts.  Scripting interactive programs is always tricky and we
are prepared that it will break sooner or later.  Most of the times
the fix will be easy.

It's more important that patch files are upwards and downwards
compatible.  At some time I built the following darcs version "2.7.3
(+ 300 patches)" but I can't use it to send patches to our "darcs
patch checker" service (which just applies the patch to a copy of the
current head repository and runs darcs check --test).  Our "DPC" runs
darcs 2.3 from Ubuntu and tries to "darcs apply" the patch bundle but
fails with this message:

1 patch for repository darcs.umidev.de:repos/all/DociData:

Tue Dec 20 10:08:24 CET 2011  wehr at factisresearch.com
  * TMP: use snapshot of roundtrip-scala

darcs failed:  Bad patch bundle!

If I send the patch using darcs 2.5.2 it works.  I'm aware that I used
a development build so I didn't report this as a bug.

For us it's very important that different darcs versions can interact
via darcs push, pull, send and apply.  We love improvements to the
darcs UI because that's what we're working with day and night and I'd
always trade a better UI for 20 minutes of fiddling with dirty
scripts.

Cheers,

    David


On Tue, Dec 27, 2011 at 11:05 PM, Eric Kow <kowey at darcs.net> wrote:
> Hi all,
>
> We have some changes we'd like to experiment with in the interactive UI (see in particular issue1920).  Unfortunately, the changes may break programs that script darcs by trying to talk to the interactive UI (feeding it y/n answers).
>
> Could I just do a quick little poll to see who's out there?  Does anybody script darcs in such a manner, even if informally with echo yyyynyyd | darcs foo? (Our test scripts do that)
>
> What do you use it for?
>
> --
> Eric Kow <http://erickow.com>
>
>
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAk76QSIACgkQBUrOwgisBPmStgCfSadciqSTWdgFwftnG6bCioF7
> Qx8AoKHU1nnXDVVRC+j3gIDDakyizwDh
> =evEQ
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> darcs-users mailing list
> darcs-users at darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-users
>



-- 
David Leuschner
Kartäuserstraße 51b
79102 Freiburg
Tel.: +49 761 4296027


More information about the darcs-users mailing list