D7097: widening: remove "depth" argument since it's always None
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Oct 14 17:57:15 UTC 2019
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7097
AFFECTED FILES
hgext/narrow/narrowbundle2.py
hgext/narrow/narrowwirepeer.py
CHANGE DETAILS
diff --git a/hgext/narrow/narrowwirepeer.py b/hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowwirepeer.py
+++ b/hgext/narrow/narrowwirepeer.py
@@ -130,7 +130,6 @@
cgversion,
common,
known,
- None,
)
except error.Abort as exc:
bundler = bundle2.bundle20(repo.ui)
diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py
--- a/hgext/narrow/narrowbundle2.py
+++ b/hgext/narrow/narrowbundle2.py
@@ -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,
)
To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list