darcs

Issue 1197 darcs pull/push --quiet <<

Title darcs pull/push --quiet <<<nyd
Priority wishlist Status given-up
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jaredj, kowey, thorkilnaur, twb
Assigned To
Topics ProbablyEasy, UI

Created on 2008-11-04.04:32:29 by twb, last changed 2017-07-30.23:19:03 by gh.

Messages
msg6581 (view) Author: twb Date: 2008-11-04.04:32:26
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".
History
Date User Action Args
2008-11-04 04:32:29twbcreate
2008-11-08 11:20:29thorkilnaursetpriority: wishlist
nosy: + jaredj
topic: + ProbablyEasy, UI
2009-04-09 13:58:19koweysetstatus: unread -> needs-reproduction
nosy: kowey, dagit, simon, twb, thorkilnaur, jaredj, dmitry.kurochkin
2009-08-10 23:50:23adminsetnosy: - dagit
2009-08-25 17:33:29adminsetnosy: + darcs-devel, - simon
2009-08-27 14:16:39adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, jaredj, dmitry.kurochkin
2009-09-06 21:09:09koweysetstatus: needs-reproduction -> needs-implementation
nosy: kowey, darcs-devel, twb, thorkilnaur, jaredj, dmitry.kurochkin
2009-09-19 03:42:32twbsetnosy: kowey, darcs-devel, twb, thorkilnaur, jaredj, dmitry.kurochkin
title: echo nyd | darcs pull/push --quiet -> darcs pull/push --quiet <<<nyd
2017-07-30 23:19:03ghsetstatus: needs-implementation -> given-up