[PATCH 5 of 5] commands: add shallowroot option
Vishakh H
vsh426 at gmail.com
Tue Jun 29 11:15:06 CDT 2010
# HG changeset patch
# User Vishakh H <vsh426 at gmail.com>
# Date 1277827642 -19800
# Branch stable
# Node ID db222d2932d63634a5406708ceb94396408c0a05
# Parent 2b83c26b29f3f99b68fca8575d53a087e0f1e13a
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
@@ -4049,6 +4050,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