diff -r fc61495ea9cf -r 30847b8af7ca hgext/mq.py --- a/hgext/mq.py Sat Jul 21 16:02:09 2007 -0500 +++ b/hgext/mq.py Sat Jul 21 16:02:09 2007 -0500 @@ -1872,7 +1872,7 @@ r = q.qrepo() if r: wlock = r.wlock() - if r.dirstate.state(name) == 'r': + if r.dirstate[name] == 'r': r.undelete([name], wlock) r.copy(patch, name, wlock) r.remove([patch], False, wlock)