# HG changeset patch # User Gregory Szorc # Date 1539949465 -7200 # Node ID 5cb72229f0e9cd9233a568415f3622afe3d058ff # Parent f1a39128da95fa2abeca2aade650aca49c1dea55 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 diff -r f1a39128da95 -r 5cb72229f0e9 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