Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 38273:f3033692ccef
stringutil: promote smartset.prettyformat() to utility function
It will be used by debugwalk.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Jun 2018 11:50:09 +0900 |
parents | ead71b15efd5 |
children | 7c3a59e2971b |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Fri Jun 01 17:27:58 2018 +0200 +++ b/mercurial/debugcommands.py Sun Jun 10 11:50:09 2018 +0900 @@ -70,7 +70,6 @@ scmutil, setdiscovery, simplemerge, - smartset, sshpeer, sslutil, streamclone, @@ -2236,8 +2235,8 @@ arevs = revset.makematcher(treebystage['analyzed'])(repo) brevs = revset.makematcher(treebystage['optimized'])(repo) if opts['show_set'] or (opts['show_set'] is None and ui.verbose): - ui.write(("* analyzed set:\n"), smartset.prettyformat(arevs), "\n") - ui.write(("* optimized set:\n"), smartset.prettyformat(brevs), "\n") + ui.write(("* analyzed set:\n"), stringutil.prettyrepr(arevs), "\n") + ui.write(("* optimized set:\n"), stringutil.prettyrepr(brevs), "\n") arevs = list(arevs) brevs = list(brevs) if arevs == brevs: @@ -2260,7 +2259,7 @@ func = revset.makematcher(tree) revs = func(repo) if opts['show_set'] or (opts['show_set'] is None and ui.verbose): - ui.write(("* set:\n"), smartset.prettyformat(revs), "\n") + ui.write(("* set:\n"), stringutil.prettyrepr(revs), "\n") if not opts['show_revs']: return for c in revs: