hgext/mq.py
changeset 10681 3f6a6407a3c7
parent 10680 45eb9b5dacf6
child 10682 8ed350051896
--- a/hgext/mq.py	Sun Mar 14 01:01:17 2010 +0100
+++ b/hgext/mq.py	Sun Mar 14 01:06:58 2010 +0100
@@ -1477,8 +1477,7 @@
             return hg.repository(self.ui, path=self.path, create=create)
 
     def restore(self, repo, rev, delete=None, qupdate=None):
-        c = repo.changelog.read(rev)
-        desc = c[4].strip()
+        desc = repo[rev].description().strip()
         lines = desc.splitlines()
         i = 0
         datastart = None