[Svnmerge] svnmerge.py breaks in cron

Dale Worley dworley at pingtel.com
Wed Oct 24 08:33:51 PDT 2007


On Wed, 2007-10-24 at 09:17 -0500, Dustin J. Mitchell wrote:
> On 10/23/07, Eric Kolve <ekolve at gmail.com> wrote:
> > I tried running svnmerge.py trunk inside of a cron job and it failed with this:
> >
> > stty: standard input: Invalid argument

More exactly, stty gave that message and failed.  svnmerge then halted
because stty failed.

> > I traced it back to this block of code:
> >
> >     # Parse the output of stty -a
> >     out = os.popen("stty -a").read()
> >     m = re.search(r"columns (\d+);", out)
> >     if m:
> >         return int(m.group(1))
> >
> > I think the best thing might be to check if the TERM environment var
> > is set before attempting this.
> 
> Good catch.  Patch attached -- any thoughts?

I don't understand the svnmerge code, but if the stty fails, is that a
reason to halt svnmerge?

Dale





More information about the Svnmerge mailing list