Mercurial > hg
diff tests/test-rebase-dest.t @ 36272:164ed6d54fdf
tests: add b prefixes to test-rebase-dest.t
# skip-blame just b prefixes
Differential Revision: https://phab.mercurial-scm.org/D2302
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 17 Feb 2018 21:47:49 -0500 |
parents | 1a09dad8b85a |
children | 5abc47d4ca6b |
line wrap: on
line diff
--- a/tests/test-rebase-dest.t Sat Feb 17 21:47:26 2018 -0500 +++ b/tests/test-rebase-dest.t Sat Feb 17 21:47:49 2018 -0500 @@ -85,20 +85,20 @@ > from mercurial import registrar, revset, revsetlang, smartset > revsetpredicate = registrar.revsetpredicate() > cache = {} - > @revsetpredicate('map') + > @revsetpredicate(b'map') > def map(repo, subset, x): > """(set, mapping)""" - > setarg, maparg = revsetlang.getargs(x, 2, 2, '') + > setarg, maparg = revsetlang.getargs(x, 2, 2, b'') > rset = revset.getset(repo, smartset.fullreposet(repo), setarg) - > mapstr = revsetlang.getstring(maparg, '') - > map = dict(a.split(':') for a in mapstr.split(',')) + > mapstr = revsetlang.getstring(maparg, b'') + > map = dict(a.split(b':') for a in mapstr.split(b',')) > rev = rset.first() > desc = repo[rev].description() > newdesc = map.get(desc) - > if newdesc == 'null': + > if newdesc == b'null': > revs = [-1] > else: - > query = revsetlang.formatspec('desc(%s)', newdesc) + > query = revsetlang.formatspec(b'desc(%s)', newdesc) > revs = repo.revs(query) > return smartset.baseset(revs) > EOF