changeset 40388:5cb72229f0e9

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 19 Oct 2018 13:44:25 +0200
parents f1a39128da95
children 1b183edbb68e
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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