[darcs-users] darcs patch: Rename --ignore-unrelated-repos to --all... (and 1 more)

David Roundy droundy at darcs.net
Mon Sep 22 16:35:54 UTC 2008


On Mon, Sep 22, 2008 at 05:17:28AM -0700, Dmitry Kurochkin wrote:
> Hi.
> 
> I was not able to 'darcs replace' --ignore-unrelated-repos with
> --allow-unrelated-repos in tests/issue1039.sh. I tried:
> 
> darcs replace ignore-unrelated-repos allow-unrelated-repos tests/issue1039.sh
> 
> But it changes nothing. How can tokens starting with '-' be replaced?

Hmmm.  For one thing, you'd have to specify the token characters
manually.  You'd have to do something like

darcs replace --token-chars '[a-z\-]' -- --hello-world --goodbye-world foo

The '--' tells getopt that the remaining arguments are not flags.
It's an option that's accepted by various commands (e.g. diff):

$echo hello > foo
$echo goodbye > --bar
$diff foo --bar
diff: unrecognized option `--bar'
diff: Try `diff --help' for more information.
$ diff -- foo --bar
1c1
< hello
---
> goodbye


> Regards,
>   Dmitry
> 
> Mon Sep 22 16:07:27 MSD 2008  Dmitry Kurochkin <dmitry.kurochkin at gmail.com>
>   * Rename --ignore-unrelated-repos to --allow-unrelated-repos.
> 
> Mon Sep 22 16:11:22 MSD 2008  Dmitry Kurochkin <dmitry.kurochkin at gmail.com>
>   * Documentation for --allow-unrelated-repos.

Applied.  Thanks!

David


More information about the darcs-users mailing list