Hi Owen,

thanks for your response.

* [Tue, Sep 18, 2012 at 04:31:37PM +0100] Owen Stephens:
Anyway, what surprised me is that I'm pretty sure once upon a time there was a final capital prompt for the obliterate action on the line: "Don't do it. Ok, if you really want, you can do it. But don't tell I haven't warned you".

Which version of darcs are you using?

Sure, that would be useful :) Sorry for having forgotten to mention it previously.

$ darcs --exact-version
darcs compiled on May 26 2012, at 18:49:02

Context:

[TAG 2.8.1
Ganesh Sittampalam <gan...@earth.li>**20120514063340
   Ignore-this: fbc024be64f47a743c1336c374f9bb14
]
...

( that's the debian shipped package )


In recent (not sure exactly which, but I can find out if necessary) darcs,
there's a "last regrets" prompt which does exactly that: after selecting
patches it says "Do you want to obliterate these patches?"

It seems that patch isn't included in the version I'm using, maybe it doesn't belong to a released version?

--- (useless output removed for the sake of readability )
$ touch a b c d
$ darcs ini
$ darcs add *
$ for a in * ; do darcs reco -am $a $a ; done
$ darcs obliterate Tue Sep 18 18:04:38 CEST 2012 "Gian Piero Carrubba" <gpi...@rm-rf.it>
    * d
Shall I obliterate this patch? (1/4)  [ynW...], or ? for more options: n
Tue Sep 18 18:04:38 CEST 2012  "Gian Piero Carrubba" <gpi...@rm-rf.it>
    * c
Shall I obliterate this patch? (2/4)  [ynW...], or ? for more options: y
Tue Sep 18 18:04:38 CEST 2012  "Gian Piero Carrubba" <gpi...@rm-rf.it>
    * b
Shall I obliterate this patch? (3/4)  [ynW...], or ? for more options: y
Tue Sep 18 18:04:37 CEST 2012  "Gian Piero Carrubba" <gpi...@rm-rf.it>
    * a
Shall I obliterate this patch? (4/4)  [ynW...], or ? for more options: n
Finished obliterating.
$
---

What sounded strange to me is that I'm pretty sure the "last regrets prompt" was present before (cannot give a time frame, it could also be in the 1.x era), but maybe I'm just mis-remembering.

Hmm, this (the fact that revert offers a final prompt) suggests you might be
using a darcs with last regrets. Did you perhaps use `darcs ob -a`?

AFAICS, `darcs ob -a' would obliterate all the patches, but I'm sure I've been prompted for selecting patches, so I can quite exclude I've used the `-a' parameter.

Or maybe you're thinking of the message:

   This operation will make unrevert impossible!
   Proceed? [yn]

which would only show up if you'd previously reverted some changes, prior to
running obliterate?

I was referring to the "Do you really want to revert this change?" prompt after having selected hunks for 'reversion' (that _is_ displayed by the same version of darcs I'm using).

Apart from the consequences of my error (minimal), I was surprised by the lack of the 'last-chance' prompt for `obliterate' both because `revert' does have it AND I was sure `obliterate' also had it in the past. So I thought this was a (IMHO, questionable) deliberate UI choice. But if I've understood it correctly, it is either a bug or simply the version I'm using doesn't include that feature.

And... Oh, well, if someone could confirm that `obliterate' historically had the 'last-chance' prompt, that would greatly increase my self-confidence :)


Ciao,
Gian Piero.
_______________________________________________
darcs-users mailing list
darcs-users@darcs.net
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to