Mercurial > hg
changeset 43247:599e0e62b597
widening: remove "depth" argument since it's always None
Differential Revision: https://phab.mercurial-scm.org/D7097
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 11 Oct 2019 00:06:27 -0700 |
parents | 0fd47eb508c6 |
children | 2673f9a74968 |
files | hgext/narrow/narrowbundle2.py hgext/narrow/narrowwirepeer.py |
diffstat | 2 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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, )