cmdutil: changed max method for lazy call
authorLucas Moscovicz <lmoscovicz@fb.com>
Fri, 14 Mar 2014 13:27:12 -0700
changeset 20760 d5fa413346e7
parent 20759 74139960c302
child 20761 46f93b7660b6
cmdutil: changed max method for lazy call Used the lazy max call instead of the python max implementation to be able to use lazysets for graphlog.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Fri Mar 14 13:26:40 2014 -0700
+++ b/mercurial/cmdutil.py	Fri Mar 14 13:27:12 2014 -0700
@@ -1711,7 +1711,7 @@
     if opts.get('copies'):
         endrev = None
         if opts.get('rev'):
-            endrev = max(scmutil.revrange(repo, opts.get('rev'))) + 1
+            endrev = scmutil.revrange(repo, opts.get('rev')).max() + 1
         getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
     displayer = show_changeset(ui, repo, opts, buffered=True)
     showparents = [ctx.node() for ctx in repo[None].parents()]