No subject


Sun Aug 16 13:15:20 CDT 2009


and COLUMNS variable is set correctly and exported. For the reference, I'm 
on Mercurial version 37042e8b3b34, Python 2.6.2 on OpenSuSE 10.3 Linux.

Are you running into the same problem?

Is it possible to internally set the terminal width to something suitable 
for book production after the fork()?

Best regards

Guido

** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version )
** Extensions loaded:
Traceback (most recent call last):
    File "/usr/local/bin/hg", line 27, in <module>
      mercurial.dispatch.run()
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 16, in run
      sys.exit(dispatch(sys.argv[1:]))
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 27, in dispatch
      return _runcatch(u, args)
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 43, in _runcatch
      return _dispatch(ui, args)
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 449, in _dispatch
      return runcommand(lui, repo, cmd, fullargs, ui, options, d)
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 317, in runcommand
      ret = _runcommand(ui, options, cmd, d)
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 501, in _runcommand
      return checkargs()
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 454, in checkargs
      return cmdfunc()
    File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py", 
line 448, in <lambda>
      d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
    File "/usr/local/lib/python2.6/site-packages/mercurial/util.py", line 
402, in check
      return func(*args, **kwargs)
    File "/usr/local/lib/python2.6/site-packages/mercurial/commands.py", 
line 1579, in help_
      f(name)
    File "/usr/local/lib/python2.6/site-packages/mercurial/commands.py", 
line 1479, in helpcmd
      ui.write("\n%s\n" % minirst.format(doc, textwidth))
    File "/usr/local/lib/python2.6/site-packages/mercurial/minirst.py", line 
321, in format
      return '\n'.join(formatblock(b, width) for b in blocks)
    File "/usr/local/lib/python2.6/site-packages/mercurial/minirst.py", line 
321, in <genexpr>
      return '\n'.join(formatblock(b, width) for b in blocks)
    File "/usr/local/lib/python2.6/site-packages/mercurial/minirst.py", line 
308, in formatblock
      subsequent_indent=subindent)
    File "/usr/local/lib/python2.6/textwrap.py", line 358, in fill
      return w.fill(text)
    File "/usr/local/lib/python2.6/textwrap.py", line 330, in fill
      return "\n".join(self.wrap(text))
    File "/usr/local/lib/python2.6/textwrap.py", line 321, in wrap
      return self._wrap_chunks(chunks)
    File "/usr/local/lib/python2.6/textwrap.py", line 250, in _wrap_chunks
      raise ValueError("invalid width %r (must be > 0)" % self.width)
ValueError: invalid width -2 (must be > 0)



More information about the Mercurial-devel mailing list