Mercurial > public > mercurial-scm > hg
comparison mercurial/changegroup.py @ 41676:0531dff73d0b
match: delete unused root and cwd arguments from {always,never,exact}() (API)
Differential Revision: https://phab.mercurial-scm.org/D5930
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 09 Feb 2019 22:50:53 -0800 |
parents | 1db5ae4b0dda |
children | 5f9d057ba28c |
comparison
equal
deleted
inserted
replaced
41675:ddbebce94665 | 41676:0531dff73d0b |
---|---|
1311 matcher=None, ellipses=False, shallow=False, | 1311 matcher=None, ellipses=False, shallow=False, |
1312 ellipsisroots=None, fullnodes=None): | 1312 ellipsisroots=None, fullnodes=None): |
1313 assert version in supportedoutgoingversions(repo) | 1313 assert version in supportedoutgoingversions(repo) |
1314 | 1314 |
1315 if matcher is None: | 1315 if matcher is None: |
1316 matcher = matchmod.always(repo.root, '') | 1316 matcher = matchmod.always() |
1317 if oldmatcher is None: | 1317 if oldmatcher is None: |
1318 oldmatcher = matchmod.never(repo.root, '') | 1318 oldmatcher = matchmod.never() |
1319 | 1319 |
1320 if version == '01' and not matcher.always(): | 1320 if version == '01' and not matcher.always(): |
1321 raise error.ProgrammingError('version 01 changegroups do not support ' | 1321 raise error.ProgrammingError('version 01 changegroups do not support ' |
1322 'sparse file matchers') | 1322 'sparse file matchers') |
1323 | 1323 |