On Mon, Dec 01, 2008 at 06:08:53PM -0500, Richard Lowe wrote:
>
> My recollection (and notes) suggest we did that to avoid a bug in
> ui.prompt() where it didn't get the !isatty() case correct.
> I think that is now fixed, so we could change.
>
> However, what you seem to be disliking is that while -y is documented:
> -y --noninteractive do not prompt, assume 'yes' for any required
> answers
>
> It actually assumes the *default* answer for any given answer, not
> 'yes', and pbconfirm defaults to "no".
>
> I don't see ui.prompt() doing any magic such that the !isatty() case,
> and the -y case are separate. So you'd still be defaulting to "No",
> surely?
I'll double check, but I went into cdm.py and just removed the code that
skipped ui.prompt(), and that seems to have worked. Perhaps I botched
it, or it behaves strangely in the non-interactive case, but it seemed
to work. Assuming I screwed something up and it does actually behave as
you describe ("-y" = "default answer"), is there any way to automate
pushes? Something on the local side .hgrc to avoid this check, perhaps?
Thanks,
- Eric
--
Eric Schrock, Fishworks http://blogs.sun.com/eschrock