[darcs-users] [patch212] Accept issue1819: pull --dont-allow-conflicts doesn't ...

Eric Kow kowey at darcs.net
Mon Jun 7 18:26:49 UTC 2010

Hi Dave,

Sorry for the delay!  One minor comment is that the file should be named

Now I'd just accept and fix this myself but I have a dumb shell question
to ask first.  Feel free to amend your way out of this.

Accept issue1819: pull --dont-allow-conflicts doesn't work
> +#!/usr/bin/env bash
> +## Test for issue1819 - pull --dont-allow-conflicts doesn't work
> +##
> +## Dave Love <fx at gnu.org>, Public domain

Public domain works too indeed :-)

> +rm -rf R S
> +for repo in R S; do
> +    darcs init --repo $repo
> +    cd $repo
> +    echo 'Example content.' >x
> +    darcs add x
> +    darcs record -lam 'Add x'
> +    echo $repo >x
> +    darcs record -lam 'Change x'
> +    cd ..
> +done

> +cd S
> +echo |
> +  darcs pull --all --dont-allow-conflicts --external-merge 'cp %2 %o' ../R &&
> +  exit 1 || true

I confess I'm a bit confused this... how do the newlines interact with
the pipe and the &&?

Is there a simpler way this could be expressed, perhaps with 'not'?

> +rm -rf R S

I imagine there's a cd.. missing above here?

Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- 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-users/attachments/20100607/e42c20b4/attachment.pgp>

More information about the darcs-users mailing list