changeset 10681:3f6a6407a3c7

mq: use context API
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 14 Mar 2010 01:06:58 +0100
parents 45eb9b5dacf6
children 8ed350051896
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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