--- a/mercurial/smartset.py Fri Jun 01 17:27:58 2018 +0200
+++ b/mercurial/smartset.py Sun Jun 10 11:50:09 2018 +0900
@@ -1129,17 +1129,3 @@
other.sort(reverse=self.isdescending())
return other
-
-def prettyformat(revs):
- lines = []
- rs = pycompat.byterepr(revs)
- p = 0
- while p < len(rs):
- q = rs.find('<', p + 1)
- if q < 0:
- q = len(rs)
- l = rs.count('<', 0, p) - rs.count('>', 0, p)
- assert l >= 0
- lines.append((l, rs[p:q].rstrip()))
- p = q
- return '\n'.join(' ' * l + s for l, s in lines)