Regularly I will provide answers to darcs push/pull prompts in
advance, e.g.
echo nyd | darcs pull
or to push all patches that don't introduce conflicts (a "kindly
push"):
x=yd; while while darcs push <<<$x; do sleep 1; done; do x=n$x; done
The output of these is currently hard to read, because the prompt
responses are not echoed to stdout, and the last patch printed is
actually unused. For example,
$ darcs pull <<<yd
Mon Nov 3 21:11:55 EST 2008 Trent W. Buck <trentbuck@gmail.com>
* Refactor QuickCheck 2 test.
This makes the output resemble autoconf, so Emacs colours it by default.
It also means the user gets information before the test starts.
Lastly, it redirects the stderr of grep, as GNU grep's manpage recommends.
Shall I pull this patch? (1/26) [ynWsfvpxdaqjk], or ? for help:
Thu Oct 23 16:10:23 EST 2008 Trent W. Buck <trentbuck@gmail.com>
* Leverage gmake's order-only dependencies.
Shall I pull this patch? (2/26) [ynWvpxdaqjk], or ? for help:
doesn't pull "Leverage gmake's order-only dependencies."
Since the --quiet switch appears to be unused for darcs push and pull,
I would like to use it to improve the output in this use case. For
example, it might emit
$ darcs pull --quiet <<<nyd
Thu Oct 23 16:10:23 EST 2008 Trent W. Buck <trentbuck@gmail.com>
* Leverage gmake's order-only dependencies.
This would be achieved by
- not printing the prompt;
- not printing the patch description until after the user receives a
response, and more importantly;
- not printing the patch description at all if the answer is "no" or
"done".
|