[PATCH 9 of 9] commands: add shallowroot option
Vishakh H
vsh426 at gmail.com
Tue Jul 6 05:47:08 CDT 2010
# HG changeset patch
# User Vishakh H <vsh426 at gmail.com>
# Date 1278412035 -19800
# Branch stable
# Node ID 732c4eb5a2ecca07e80c38045d07ec7d825a678d
# Parent b2468fb58b2bbbe5711119437449f253fda68318
commands: add shallowroot option
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -717,7 +717,8 @@
stream=opts.get('uncompressed'),
rev=opts.get('rev'),
update=opts.get('updaterev') or not opts.get('noupdate'),
- branch=opts.get('branch'))
+ branch=opts.get('branch'),
+ shallowroot=opts.get('shallowroot'))
return r is None
@@ -4053,6 +4054,8 @@
_('include the specified changeset'), _('REV')),
('b', 'branch', [],
_('clone only the specified branch'), _('BRANCH')),
+ ('s', 'shallowroot', '',
+ _('revision at which shallow clone will be created'), _('REV')),
('', 'pull', None, _('use pull protocol to copy metadata')),
('', 'uncompressed', None,
_('use uncompressed transfer (fast over LAN)')),
More information about the Mercurial-devel
mailing list