Mercurial > hg
diff tests/test-glog-beautifygraph.t @ 39055:dcecf772756a
tests: port inline extension in test for beautifygraph to Python 3
test-glog-beautifygraph.t now passes on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D4247
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 10 Aug 2018 00:37:24 -0400 |
parents | 760cc5dc01e8 |
children | a271466cb53a |
line wrap: on
line diff
--- a/tests/test-glog-beautifygraph.t Fri Aug 10 00:08:06 2018 -0400 +++ b/tests/test-glog-beautifygraph.t Fri Aug 10 00:37:24 2018 -0400 @@ -113,7 +113,7 @@ > else: > tree = [] > ui = repo.ui - > ui.write(b'%r\n' % (opts.get(b'rev', []),)) + > ui.write(b'%s\n' % stringutil.pprint(opts.get(b'rev', []))) > ui.write(revsetlang.prettyformat(tree) + b'\n') > ui.write(stringutil.prettyrepr(revs) + b'\n') > revs = smartset.baseset() # display no revisions @@ -2043,7 +2043,7 @@ <spanset- 0:7>, <matchfiles patterns=[], include=['set:copied()'] exclude=[], default='relpath', rev=2147483647>> $ testlog -r "sort(file('set:copied()'), -rev)" - ["sort(file('set:copied()'), -rev)"] + ['sort(file(\'set:copied()\'), -rev)'] [] <filteredset <fullreposet- 0:7>,