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
--- 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