If we send an empty includepats or excludepats argument to getbundle, it's
translated to [''] on the server which causes problems because even though
it's empty, bool of that value if True and we end up creating differencematcher
with narrowspec.match() which results in unexpected behavior.
Details
Details
- Reviewers
durin42 martinvonz - Group Reviewers
hg-reviewers - Commits
- rHGa2c4502e409b: narrow: only send includepats and excludepats if they are not empty
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
I noticed I had an unsubmitted comment on this patch. Can be done in a follow-up (if at all).
hgext/narrow/narrowcommands.py | ||
---|---|---|
142–143 | should these also be changed? |
hgext/narrow/narrowcommands.py | ||
---|---|---|
142–143 | From these, do you mean the oldincludepats and oldexcludepats? |
should these also be changed?