# HG changeset patch # User Martin von Zweigbergk # Date 1570777587 25200 # Node ID 599e0e62b597fb356368b1f81c9f3c9fd5eaf24f # Parent 0fd47eb508c6f078f14d97899ba2d0cbda016e11 widening: remove "depth" argument since it's always None Differential Revision: https://phab.mercurial-scm.org/D7097 diff -r 0fd47eb508c6 -r 599e0e62b597 hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py Fri Oct 11 00:03:10 2019 -0700 +++ b/hgext/narrow/narrowbundle2.py Fri Oct 11 00:06:27 2019 -0700 @@ -121,15 +121,10 @@ version, common, known, - depth, ): newmatch = narrowspec.match( repo.root, include=newinclude, exclude=newexclude ) - if depth is not None: - depth = int(depth) - if depth < 1: - raise error.Abort(_(b'depth must be positive, got %d') % depth) common = set(common or [nullid]) # Steps: @@ -173,7 +168,7 @@ repo, matcher=newmatch, ellipses=True, - shallow=depth is not None, + shallow=False, ellipsisroots=newellipsis, fullnodes=newfull, ) diff -r 0fd47eb508c6 -r 599e0e62b597 hgext/narrow/narrowwirepeer.py --- a/hgext/narrow/narrowwirepeer.py Fri Oct 11 00:03:10 2019 -0700 +++ b/hgext/narrow/narrowwirepeer.py Fri Oct 11 00:06:27 2019 -0700 @@ -130,7 +130,6 @@ cgversion, common, known, - None, ) except error.Abort as exc: bundler = bundle2.bundle20(repo.ui)