diff hgext/mq.py @ 6747:f6c00b17387c

use repo[changeid] to get a changectx
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Jun 2008 14:35:46 -0500
parents 034f444902d9
children fb42030d79d6
line wrap: on
line diff
--- a/hgext/mq.py	Thu Jun 26 13:58:24 2008 -0500
+++ b/hgext/mq.py	Thu Jun 26 14:35:46 2008 -0500
@@ -342,7 +342,7 @@
         hg.clean(repo, head)
         self.strip(repo, n, update=False, backup='strip')
 
-        ctx = repo.changectx(rev)
+        ctx = repo[rev]
         ret = hg.merge(repo, rev)
         if ret:
             raise util.Abort(_("update returned %d") % ret)