I'm finding that if I try to run 'hg -y push', I'm getting booted out of cdm.pbconfirm despite the fact that I've specified '-y' to answer "yes" to everything. Looking at the code for yes_no(), we manually check ui.interactive, and then always return the default answer ("no" in this case) for the non-interactive case. Why are we not just using ui.prompt(), which is supposed to return the default answer in a non-interactive case, and presumably knows how to replace it with 'y' if 'hg -y' is specified? I hacked up my cdm.py to always call ui.prompt() and let it do the work, and that seems to work.
Thanks, - Eric -- Eric Schrock, Fishworks http://blogs.sun.com/eschrock