diff hgext/children.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 cd65a67aff31
children 87158be081b8
line wrap: on
line diff
--- a/hgext/children.py	Thu Jun 26 13:58:24 2008 -0500
+++ b/hgext/children.py	Thu Jun 26 14:35:46 2008 -0500
@@ -25,7 +25,7 @@
     if file_:
         ctx = repo.filectx(file_, changeid=rev)
     else:
-        ctx = repo.changectx(rev)
+        ctx = repo[rev]
 
     displayer = cmdutil.show_changeset(ui, repo, opts)
     for node in [cp.node() for cp in ctx.children()]: