mercurial/smartset.py
changeset 38273 f3033692ccef
parent 36298 b44fac3a49fb
child 38576 152f4822d210
--- 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)