# HG changeset patch # User Augie Fackler # Date 2018-02-12 19:58:32 # Node ID b60c577b6e03e4a882efd9a4abd8c6b38a115520 # Parent 22ed16caa596051c8253db20f93be74da7aa9bf1 narrowwirepeer: add TODO about how we add wireproto args to unbundle :( Differential Revision: https://phab.mercurial-scm.org/D2194 diff --git a/hgext/narrow/narrowwirepeer.py b/hgext/narrow/narrowwirepeer.py --- a/hgext/narrow/narrowwirepeer.py +++ b/hgext/narrow/narrowwirepeer.py @@ -43,6 +43,8 @@ def reposetup(repo): def wirereposetup(ui, peer): def wrapped(orig, cmd, *args, **kwargs): if cmd == 'unbundle': + # TODO: don't blindly add include/exclude wireproto + # arguments to unbundle. include, exclude = repo.narrowpats kwargs["includepats"] = ','.join(include) kwargs["excludepats"] = ','.join(exclude)