Show More
@@ -2386,12 +2386,20 b' class _followfilter(object):' | |||||
2386 |
|
2386 | |||
2387 | def match(self, rev): |
|
2387 | def match(self, rev): | |
2388 | def realparents(rev): |
|
2388 | def realparents(rev): | |
|
2389 | try: | |||
2389 | if self.onlyfirst: |
|
2390 | if self.onlyfirst: | |
2390 | return self.repo.changelog.parentrevs(rev)[0:1] |
|
2391 | return self.repo.changelog.parentrevs(rev)[0:1] | |
2391 | else: |
|
2392 | else: | |
2392 | return filter( |
|
2393 | return filter( | |
2393 |
lambda x: x != nullrev, |
|
2394 | lambda x: x != nullrev, | |
|
2395 | self.repo.changelog.parentrevs(rev), | |||
2394 | ) |
|
2396 | ) | |
|
2397 | except error.WdirUnsupported: | |||
|
2398 | prevs = [p.rev() for p in self.repo[rev].parents()] | |||
|
2399 | if self.onlyfirst: | |||
|
2400 | return prevs[:1] | |||
|
2401 | else: | |||
|
2402 | return prevs | |||
2395 |
|
2403 | |||
2396 | if self.startrev == nullrev: |
|
2404 | if self.startrev == nullrev: | |
2397 | self.startrev = rev |
|
2405 | self.startrev = rev |
General Comments 0
You need to be logged in to leave comments.
Login now