[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: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-03-01 18:56:58 CET

Nah, I think Jim is right. --non-interactive *was* written for
authentication prompts, but the spirit behind the change was to
prevent Subversion from hanging while waiting for input when run from
scripts that can't provide that input. Let just go ahead and make
--non-interactive disable *all* interactivity. That means that if you
do a commit with --non-interactive and no -m or -F, your commit fails
with an explanatory error message.

Ben Reser <ben@reser.org> writes:

> 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>
> http://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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 1 19:00:45 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.