D5423: match: fix doctest to use bytes instead of str
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Dec 14 12:30:57 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa3e57c69d47d: match: fix doctest to use bytes instead of str (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5423?vs=12848&id=12852
REVISION DETAIL
https://phab.mercurial-scm.org/D5423
AFFECTED FILES
mercurial/match.py
CHANGE DETAILS
diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -1196,8 +1196,8 @@
Test too large input
>>> _buildregexmatch([
- ... ('relglob', '?' * MAX_RE_SIZE, '')
- ... ], '$')
+ ... (b'relglob', b'?' * MAX_RE_SIZE, b'')
+ ... ], b'$')
Traceback (most recent call last):
...
Abort: matcher pattern is too long (20009 bytes)
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list