changeset 20760:d5fa413346e7

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.
author Lucas Moscovicz <lmoscovicz@fb.com>
date Fri, 14 Mar 2014 13:27:12 -0700
parents 74139960c302
children 46f93b7660b6
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()]