hgext/graphlog.py
changeset 8210 344751cd8cb8
parent 8188 f3abe032fc89
child 8225 46293a0c7e9f
--- a/hgext/graphlog.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/hgext/graphlog.py	Sun Apr 26 16:50:44 2009 -0500
@@ -285,11 +285,10 @@
     ascii(ui, grapher(graphdag))
 
 def graphrevs(repo, nodes, opts):
-    nodes.reverse()
     include = set(nodes)
     limit = cmdutil.loglimit(opts)
     count = 0
-    for node in nodes:
+    for node in reversed(nodes):
         if count >= limit:
             break
         ctx = repo[node]