This is an archive of the discontinued Mercurial Phabricator instance.

changegroup: add a parts argument to cgpacker.generate()
AbandonedPublic

Authored by pulkit on Oct 5 2018, 11:40 AM.

Details

Reviewers
durin42
martinvonz
Group Reviewers
hg-reviewers
Summary

This patch removes the changelog argument added to cgpacker.generate() few weeks
ago and add a parts argument which will be a tuple of parts to be included into
the changegroup.

The changelog argument was used to determine that whether we need to add
changelog data to the changegroup or not. In upcoming patches, I will need same
functionality for manifests where I just want to send the dirlogs for extending
a narrow clone. Instead of adding a new argument for each possible thing, let's
add one argument specifying things we want to generate.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped