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.
--- 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()]