hgext/mq.py
changeset 4906 30847b8af7ca
parent 4905 fc61495ea9cf
child 4915 97b734fb9c6f
--- 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)