diff mercurial/commands.py @ 29119:a032ebea4e97

revset: factor out public optimize() function from recursion New optimize() hides internal arguments and return values. This makes it easy to add more parameters and return values to _optimize().
author Yuya Nishihara <yuya@tcha.org>
date Mon, 02 May 2016 12:09:00 +0900
parents fe50341de1ff
children 8c8442523eef
line wrap: on
line diff
--- a/mercurial/commands.py	Mon May 02 12:47:09 2016 +0900
+++ b/mercurial/commands.py	Mon May 02 12:09:00 2016 +0900
@@ -3514,7 +3514,7 @@
         if newtree != tree:
             ui.note("* concatenated:\n", revset.prettyformat(newtree), "\n")
         if opts["optimize"]:
-            weight, optimizedtree = revset.optimize(newtree, True)
+            optimizedtree = revset.optimize(newtree)
             ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
     func = revset.match(ui, expr, repo)
     revs = func(repo)