Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | hgext/narrow/narrowbundle2.py (2 lines) | |||
M | hgext/narrow/narrowwirepeer.py (1 line) |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
bundler, | bundler, | ||||
repo, | repo, | ||||
oldinclude, | oldinclude, | ||||
oldexclude, | oldexclude, | ||||
newinclude, | newinclude, | ||||
newexclude, | newexclude, | ||||
version, | version, | ||||
common, | common, | ||||
heads, | |||||
known, | known, | ||||
depth, | depth, | ||||
): | ): | ||||
newmatch = narrowspec.match( | newmatch = narrowspec.match( | ||||
repo.root, include=newinclude, exclude=newexclude | repo.root, include=newinclude, exclude=newexclude | ||||
) | ) | ||||
if depth is not None: | if depth is not None: | ||||
depth = int(depth) | depth = int(depth) | ||||
if depth < 1: | if depth < 1: | ||||
raise error.Abort(_(b'depth must be positive, got %d') % depth) | raise error.Abort(_(b'depth must be positive, got %d') % depth) | ||||
heads = set(heads or repo.heads()) | |||||
common = set(common or [nullid]) | common = set(common or [nullid]) | ||||
# Steps: | # Steps: | ||||
# 1. Send kill for "$known & ::common" | # 1. Send kill for "$known & ::common" | ||||
# | # | ||||
# 2. Send changegroup for ::common | # 2. Send changegroup for ::common | ||||
# | # | ||||
# 3. Proceed. | # 3. Proceed. | ||||
# | # |
bundler, | bundler, | ||||
repo, | repo, | ||||
oldincludes, | oldincludes, | ||||
oldexcludes, | oldexcludes, | ||||
newincludes, | newincludes, | ||||
newexcludes, | newexcludes, | ||||
cgversion, | cgversion, | ||||
common, | common, | ||||
list(common), | |||||
known, | known, | ||||
None, | None, | ||||
) | ) | ||||
except error.Abort as exc: | except error.Abort as exc: | ||||
bundler = bundle2.bundle20(repo.ui) | bundler = bundle2.bundle20(repo.ui) | ||||
manargs = [(b'message', pycompat.bytestr(exc))] | manargs = [(b'message', pycompat.bytestr(exc))] | ||||
advargs = [] | advargs = [] | ||||
if exc.hint is not None: | if exc.hint is not None: |