Mercurial > public > mercurial-scm > hg
diff mercurial/changelog.py @ 26094:df41c7be16d6
reachableroots: construct and sort baseset in revset module
This can remove the dependency from changelog to revset, which seems a bit awkward
for me.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 28 Aug 2015 11:14:24 +0900 |
parents | be8a4e0800d8 |
children | ed003859f1d8 |
line wrap: on
line diff
--- a/mercurial/changelog.py Fri Aug 21 16:12:24 2015 -0700 +++ b/mercurial/changelog.py Fri Aug 28 11:14:24 2015 +0900 @@ -18,7 +18,6 @@ encoding, error, revlog, - revset, util, ) @@ -186,10 +185,7 @@ return self._nodecache def reachableroots(self, minroot, heads, roots, includepath=False): - rroots = self.index.reachableroots2(minroot, heads, roots, includepath) - rroots = revset.baseset(rroots) - rroots.sort() - return rroots + return self.index.reachableroots2(minroot, heads, roots, includepath) def headrevs(self): if self.filteredrevs: