--- a/mercurial/changelog.py Thu Aug 20 17:19:56 2015 -0700
+++ b/mercurial/changelog.py Thu Aug 20 17:23:21 2015 -0700
@@ -186,8 +186,10 @@
return self._nodecache
def reachableroots(self, minroot, heads, roots, includepath=False):
- return revset.baseset(sorted(
- self.index.reachableroots2(minroot, heads, roots, includepath)))
+ rroots = self.index.reachableroots2(minroot, heads, roots, includepath)
+ rroots = revset.baseset(rroots)
+ rroots.sort()
+ return rroots
def headrevs(self):
if self.filteredrevs: