[PATCH] import: deprecate --base

Patrick Mezard pmezard at gmail.com
Sun Jun 5 07:25:17 CDT 2011

# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1307273818 -7200
# Node ID f5686ed526087aa1728c472210d63a72ef7b8525
# Parent  b88368a3ade4b748c8e01cf0453158f80e558a7a
import: deprecate --base

This option was a convenient hack introduced in Mercurial early days which
unfortunately survived until now.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2993,7 +2993,7 @@
     [('p', 'strip', 1,
      _('directory strip option for patch. This has the same '
        'meaning as the corresponding patch option'), _('NUM')),
-    ('b', 'base', '', _('base path'), _('PATH')),
+    ('b', 'base', '', _('base path (DEPRECATED)'), _('PATH')),
     ('f', 'force', None, _('skip check for outstanding uncommitted changes')),
     ('', 'no-commit', None,
      _("don't commit, just update the working directory")),

More information about the Mercurial-devel mailing list