diff mercurial/revset.py @ 38576:152f4822d210

pycompat: move rapply() from util I want to use rapply() in utils.* modules, but that would introduce a reference cycle util -> utils.* -> util. Moving rapply() to pycompat should be okay since it mostly serves as a compatibility helper.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 10 Jun 2018 17:07:29 +0900
parents 6ec996e8c9bc
children b62000a28812
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Jul 05 09:53:00 2018 +0530
+++ b/mercurial/revset.py	Sun Jun 10 17:07:29 2018 +0900
@@ -112,7 +112,7 @@
     return None
 
 def _sortedb(xs):
-    return sorted(util.rapply(pycompat.maybebytestr, xs))
+    return sorted(pycompat.rapply(pycompat.maybebytestr, xs))
 
 # operator methods