This is an archive of the discontinued Mercurial Phabricator instance.

streamclone: pass includes and excludes to stream_out wireprotocol cmd
AbandonedPublic

Authored by pulkit on Sep 27 2018, 4:27 PM.

Details

Reviewers
indygreg
Group Reviewers
hg-reviewers
Summary

This adds client side logic to pass includes and excludes to the stream_out()
wireprotocol command. Tests are not added because there is not server side logic
yet to filter out data to stream.

  1. no-check-commit because it touches a function with foo_bar naming

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Sep 27 2018, 4:27 PM
indygreg requested changes to this revision.Oct 1 2018, 1:22 PM
indygreg added a subscriber: indygreg.
indygreg added inline comments.
mercurial/streamclone.py
141

I think we also want to make this conditional on a narrow stream clone actually being requested. i.e. don't send the arguments unless they have values.

mercurial/wireprotov1peer.py
412

Nit: don't use mutable values as default argument values.

This revision now requires changes to proceed.Oct 1 2018, 1:22 PM
pulkit abandoned this revision.Jan 29 2019, 6:58 AM