[darcs-devel] [darcs #313] [wish] interactive selection should cycle through W selections

Junio C Hamano via RT bugs at darcs.net
Sat Apr 2 19:50:36 PST 2005


Sat Apr 02 22:50:35 2005: New ticket: 313.
Transaction: Ticket created by junkio at cox.net
       Queue: Darcs
     Subject: [wish] interactive selection should cycle through W selections
       Owner: Nobody
  Requestors: junkio at cox.net
      Status: new
 Ticket <URL: http://bugs.darcs.net/.//Ticket/Display.html?id=313 >

I often wish that W (wait to decide later) worked as advertised
in darcs record.

For example I have a modified file that has 3 hunks.  

    $ darcs record
    hunk ./file 2
    +echo change 1
    Shall I record this patch? (1/3) [ynWsfqadjk], or ? for help: w

I examine the first and cannot decide if I want to record it, so I ask
darcs to wait and decide later.  Then I go on to the second and
third hunk.

    hunk ./file 4
    +echo change 2
    Shall I record this patch? (2/3) [ynWsfqadjk], or ? for help: n
    hunk ./file 6
    +echo change 3
    Shall I record this patch? (3/3) [ynWsfqadjk], or ? for help: y

When I am done, however, darcs does not ask me about the first
one again.

    What is the patch name? why aren't you asking about hunk 1 again???
    Do you want to add a long comment? [yn] ^C

What I expected to happen when I was bitten by this unexpected
behaviour (bug is a bit too strong word for this) for the first
time was for darcs to ask me about the hunks I have not answerd
again---which I think is why there are 'd', 'a', and 'q' in the
possible action in the list.

I grant that the help text for 'W' says "wait and decide later,
defaulting to no", but the part of that help text after the
comma seems to me juast a lame excuse for 'W' not doing anything
differently from 'N'.






More information about the darcs-devel mailing list