Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
39054:de3a9d7ec1c2 | 39055:dcecf772756a |
---|---|
111 > tree = revsetlang.parse(expr) | 111 > tree = revsetlang.parse(expr) |
112 > tree = revsetlang.analyze(tree) | 112 > tree = revsetlang.analyze(tree) |
113 > else: | 113 > else: |
114 > tree = [] | 114 > tree = [] |
115 > ui = repo.ui | 115 > ui = repo.ui |
116 > ui.write(b'%r\n' % (opts.get(b'rev', []),)) | 116 > ui.write(b'%s\n' % stringutil.pprint(opts.get(b'rev', []))) |
117 > ui.write(revsetlang.prettyformat(tree) + b'\n') | 117 > ui.write(revsetlang.prettyformat(tree) + b'\n') |
118 > ui.write(stringutil.prettyrepr(revs) + b'\n') | 118 > ui.write(stringutil.prettyrepr(revs) + b'\n') |
119 > revs = smartset.baseset() # display no revisions | 119 > revs = smartset.baseset() # display no revisions |
120 > return revs, filematcher | 120 > return revs, filematcher |
121 > extensions.wrapfunction(logcmdutil, 'getrevs', printrevset) | 121 > extensions.wrapfunction(logcmdutil, 'getrevs', printrevset) |
2041 (string 'i:set:copied()'))) | 2041 (string 'i:set:copied()'))) |
2042 <filteredset | 2042 <filteredset |
2043 <spanset- 0:7>, | 2043 <spanset- 0:7>, |
2044 <matchfiles patterns=[], include=['set:copied()'] exclude=[], default='relpath', rev=2147483647>> | 2044 <matchfiles patterns=[], include=['set:copied()'] exclude=[], default='relpath', rev=2147483647>> |
2045 $ testlog -r "sort(file('set:copied()'), -rev)" | 2045 $ testlog -r "sort(file('set:copied()'), -rev)" |
2046 ["sort(file('set:copied()'), -rev)"] | 2046 ['sort(file(\'set:copied()\'), -rev)'] |
2047 [] | 2047 [] |
2048 <filteredset | 2048 <filteredset |
2049 <fullreposet- 0:7>, | 2049 <fullreposet- 0:7>, |
2050 <matchfiles patterns=['set:copied()'], include=[] exclude=[], default='glob', rev=None>> | 2050 <matchfiles patterns=['set:copied()'], include=[] exclude=[], default='glob', rev=None>> |
2051 | 2051 |