Another problem I ran into.  After editing cdm.py by hand and changing
the default to be 'True', I could run the script by hand, but my cron
job was failing with:

error: preoutgoing.cdm_pbconfirm hook raised an exception: (6, 'No such device 
or address')
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.0.2)
Traceback (most recent call last):
  File "/usr/bin/hg", line 20, in ?
    mercurial.dispatch.run()
  File "build/proto/lib/python/mercurial/dispatch.py", line 20, in run
  File "build/proto/lib/python/mercurial/dispatch.py", line 29, in dispatch
  File "build/proto/lib/python/mercurial/dispatch.py", line 45, in _runcatch
  File "build/proto/lib/python/mercurial/dispatch.py", line 364, in _dispatch
  File "build/proto/lib/python/mercurial/dispatch.py", line 417, in _runcommand
  File "build/proto/lib/python/mercurial/dispatch.py", line 373, in checkargs
  File "build/proto/lib/python/mercurial/dispatch.py", line 356, in <lambda>
  File "/usr/lib/python2.4/commands.py", line 2109, in push
    
  File "build/proto/lib/python/mercurial/localrepo.py", line 1518, in push
  File "build/proto/lib/python/mercurial/localrepo.py", line 1594, in 
push_unbundle
  File "build/proto/lib/python/mercurial/localrepo.py", line 1572, in prepush
  File "build/proto/lib/python/mercurial/localrepo.py", line 1913, in 
changegroup
  File "build/proto/lib/python/mercurial/localrepo.py", line 123, in hook
  File "build/proto/lib/python/mercurial/hook.py", line 107, in hook
  File "build/proto/lib/python/mercurial/hook.py", line 51, in _pythonhook
  File "/opt/onbld/lib/python/onbld/hgext/cdm.py", line 165, in pbconfirm
    settings = termios.tcgetattr(sys.stdin.fileno())
termios.error: (6, 'No such device or address')

Looks like the problem is that pbconfirm() tries to fiddle with termios
settings (?), and fails if stdin is closed.

- Eric

--
Eric Schrock, Fishworks                        http://blogs.sun.com/eschrock

Reply via email to