##// END OF EJS Templates
index: use `index.get_rev` in `localrepo.known`...
marmoute -
r43955:ded3d545 default
parent child Browse files
Show More
@@ -1823,11 +1823,11 b' class localrepository(object):'
1823
1823
1824 def known(self, nodes):
1824 def known(self, nodes):
1825 cl = self.changelog
1825 cl = self.changelog
1826 nm = cl.nodemap
1826 get_rev = cl.index.get_rev
1827 filtered = cl.filteredrevs
1827 filtered = cl.filteredrevs
1828 result = []
1828 result = []
1829 for n in nodes:
1829 for n in nodes:
1830 r = nm.get(n)
1830 r = get_rev(n)
1831 resp = not (r is None or r in filtered)
1831 resp = not (r is None or r in filtered)
1832 result.append(resp)
1832 result.append(resp)
1833 return result
1833 return result
General Comments 0
You need to be logged in to leave comments. Login now