Changeset View
Changeset View
Standalone View
Standalone View
mercurial/changegroup.py
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Line(s) | ): | ||||
`sidedata_categories` is an optional set of the remote's sidedata wanted | `sidedata_categories` is an optional set of the remote's sidedata wanted | ||||
categories. | categories. | ||||
""" | """ | ||||
repo = repo.unfiltered() | repo = repo.unfiltered() | ||||
# Only useful if we're adding sidedata categories. If both peers have | # Only useful if we're adding sidedata categories. If both peers have | ||||
# the same categories, then we simply don't do anything. | # the same categories, then we simply don't do anything. | ||||
if self.version == b'04' and srctype == b'pull': | adding_sidedata = ( | ||||
requirements.REVLOGV2_REQUIREMENT in repo.requirements | |||||
and self.version == b'04' | |||||
and srctype == b'pull' | |||||
) | |||||
if adding_sidedata: | |||||
sidedata_helpers = get_sidedata_helpers( | sidedata_helpers = get_sidedata_helpers( | ||||
repo, | repo, | ||||
sidedata_categories or set(), | sidedata_categories or set(), | ||||
pull=True, | pull=True, | ||||
) | ) | ||||
else: | else: | ||||
sidedata_helpers = None | sidedata_helpers = None | ||||
▲ Show 20 Lines • Show All 1635 Lines • Show Last 20 Lines |