match: optimize escaping in _globre
- localize re.escape
- fastpath escaping of non-special characters
match: simplify _matcher
- get rid of special case
- simplify anypats logic
- fold inckinds and exckinds
match: refactor patkind
add patkind(pat) to match
change external users
change util.patkind to _patsplit
tests: add tests for new pre-push logic (
issue736)
Co-contributor: Henrik Stuart <henrik.stuart@edlund.dk>
named branches: improve pre-push logic (
issue736)
Each named branch is considered separately, and the push is allowed if
no new branch heads are created for any named branch to be pushed.
Due to some tests's use of --debug, their output will change after this
addition. This has been fixed as well.
Co-contributor: Henrik Stuart <henrik.stuart@edlund.dk>