##// END OF EJS Templates
revset: use try-except instead of if-else because of perf...
Pulkit Goyal -
r32439:e72c5263 default
parent child Browse files
Show More
@@ -1456,10 +1456,10 b' def parents(repo, subset, x):'
1456 up = ps.update
1456 up = ps.update
1457 parentrevs = cl.parentrevs
1457 parentrevs = cl.parentrevs
1458 for r in getset(repo, fullreposet(repo), x):
1458 for r in getset(repo, fullreposet(repo), x):
1459 if r == node.wdirrev:
1459 try:
1460 up(parentrevs(r))
1461 except error.WdirUnsupported:
1460 up(p.rev() for p in repo[r].parents())
1462 up(p.rev() for p in repo[r].parents())
1461 else:
1462 up(parentrevs(r))
1463 ps -= {node.nullrev}
1463 ps -= {node.nullrev}
1464 return subset & ps
1464 return subset & ps
1465
1465
General Comments 0
You need to be logged in to leave comments. Login now