AttributeError state from hg update -C when hg inserve is running

Georg gwk.rko at googlemail.com
Thu Oct 25 03:17:02 CDT 2007


Hi,

just had another problem while hg inserve was running, Hg 0.9.5, inotify tip
(06bd07e64121):

hunter[8]$ hg heads simmgr_r10_munich_patches
changeset:   4980:53f498e5598e
branch:      simmgr_r10_munich_patches
user:        scavenger
date:        Fri Oct 12 15:34:37 2007 +0200
summary:     Added tag r10_munich_patches for changeset 0b020778ce9b

hunter[9]$ hg up -C simmgr_r10_munich_patches
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.5)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 14, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
29, in dispatch
    return _runcatch(u, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
45, in _runcatch
    return _dispatch(ui, args)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
348, in _dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
401, in _runcommand
    return checkargs()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
357, in checkargs
    return cmdfunc()
  File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py", line
340, in <lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/usr/lib/python2.5/site-packages/hg-inotify/__init__.py", line 27,
in serve
    cmdutil.service(opts, initfn=service.init, runfn=service.run)
  File "/usr/local/lib/python2.5/site-packages/mercurial/cmdutil.py", line
330, in service
    return runfn()
  File "/usr/lib/python2.5/site-packages/hg-inotify/__init__.py", line 22,
in run
    self.master.run()
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 680, in
run
    timeobj.handle_timeout()
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 520, in
handle_timeout
    self.read_events(0)
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 513, in
read_events
    self.process_create(wpath, evt)
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 456, in
process_create
    self.scan(wpath)
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 313, in
scan
    self.handle_timeout()
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 533, in
handle_timeout
    self.deferred_event(wpath, evt)
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 446, in
deferred_event
    self.modified(wpath)
  File "/usr/lib/python2.5/site-packages/hg-inotify/server.py", line 416, in
modified
    if self.repo.dirstate.state(wpath) in 'lmn':
  File "/usr/local/lib/python2.5/site-packages/mercurial/dirstate.py", line
66, in __getattr__
    raise AttributeError, name
AttributeError: state

1825 files updated, 0 files merged, 2171 files removed, 0 files unresolved
[1]-  Exit 1                  hg inserve
hunter[10]$


To me it looks like the background process (inserve) is the one getting the
error, and it exits with RC=1.

--
Regards,
Georg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial-devel/attachments/20071025/06fb499b/attachment.htm 


More information about the Mercurial-devel mailing list