D5164: commands: support passing depth to hg.clone()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Oct 19 17:02:29 UTC 2018


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This will allow extensions to add --depth or other arguments to control
  depth fetching.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5164

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list