[PATCH 4 of 4] debugrevspec: deprecate --optimize option

Yuya Nishihara yuya at tcha.org
Thu Sep 8 11:14:26 EDT 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1471750583 -32400
#      Sun Aug 21 12:36:23 2016 +0900
# Node ID 06ffd3f76a7c117d3b11bebae909a4fb32c5f82a
# Parent  737f256f394d4401e554413fc77cfc85b8337d32
debugrevspec: deprecate --optimize option

This option has been superseded by '--show-stage NAME', and will cause
confusion in future patches.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3511,7 +3511,8 @@ def debugrevlog(ui, repo, file_=None, **
                                                              numdeltas))
 
 @command('debugrevspec',
-    [('', 'optimize', None, _('print parsed tree after optimizing')),
+    [('', 'optimize', None,
+      _('print parsed tree after optimizing (DEPRECATED)')),
      ('p', 'show-stage', [],
       _('print parsed tree at the given stage'), _('NAME')),
      ],


More information about the Mercurial-devel mailing list