[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [BUG] svn commit ignores --non-interactive

From: Ben Reser <ben_at_reser.org>
Date: 2005-03-01 18:48:19 CET

On Wed, Dec 22, 2004 at 02:58:14PM -0500, Jim Correia wrote:
> On Dec 22, 2004, at 2:36 PM, Philip Martin wrote:
> >--non-interactive applies to authentication prompts.
> The documentation isn't so specific. It simply says:
> --non-interactive : do no interactive prompting
> >If we are going to extend it to the log message then would it not make
> >more sense for
> >it to prevent use of the editor as well, i.e. require you to use
> >either -m or -F.
> I'm not sure about that.
> The reason that I ran into it was that I was using it in a scripted
> environment where it was appropriate to use the editor (i.e. I was
> sitting there ready to type a commit message), but the script wasn't
> attached to a TTY, so printing something to stdout/stderr and expecting
> to be able to read an answer back from stdin is wrong.
> My expectation was that this would be covered under by "do no
> interactive prompting."

Can't we just check to see if stdin is a tty? I suppose that's probably
not a portable solution. But I know a lot of unix apps use that to
decide if they should interactively propmpt.

Ben Reser <ben@reser.org>
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 1 18:50:33 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.