commands: support passing depth to hg.clone()
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 19 Oct 2018 13:44:25 +0200
changeset 40388 5cb72229f0e9
parent 40387 f1a39128da95
child 40389 1b183edbb68e
commands: support passing depth to hg.clone() This will allow extensions to add --depth or other arguments to control depth fetching. Differential Revision: https://phab.mercurial-scm.org/D5164
mercurial/commands.py
--- a/mercurial/commands.py	Wed Oct 03 14:57:29 2018 -0700
+++ b/mercurial/commands.py	Fri Oct 19 13:44:25 2018 +0200
@@ -1553,7 +1553,8 @@
                  branch=opts.get('branch'),
                  shareopts=opts.get('shareopts'),
                  storeincludepats=includepats,
-                 storeexcludepats=excludepats)
+                 storeexcludepats=excludepats,
+                 depth=opts.get('depth') or None)
 
     return r is None