[PATCH 01 of 14] commands: add shallowroot option

Vishakh H vsh426 at gmail.com
Fri Jul 16 02:15:09 CDT 2010


# HG changeset patch
# User Vishakh H <vsh426 at gmail.com>
# Date 1279263210 -19800
# Node ID ac0aaabc91abd7c2ecde7c1e35fe2ac6f6a46e93
# Parent  47ca289a3a08516dd9b05d5ebe88aee07cf42d89
commands: add shallowroot option

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -707,7 +707,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
 
@@ -4048,6 +4049,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