##// END OF EJS Templates
bisect: avoid adding irrelevant revisions to bisect state...
Arun Kulshreshtha -
r50337:81623652 default
parent child Browse files
Show More
@@ -1035,7 +1035,14 def bisect(
1035 1035 state = hbisect.load_state(repo)
1036 1036
1037 1037 if rev:
1038 nodes = [repo.changelog.node(i) for i in logcmdutil.revrange(repo, rev)]
1038 revs = logcmdutil.revrange(repo, rev)
1039 goodnodes = state[b'good']
1040 badnodes = state[b'bad']
1041 if goodnodes and badnodes:
1042 candidates = repo.revs(b'(%ln)::(%ln)', goodnodes, badnodes)
1043 candidates += repo.revs(b'(%ln)::(%ln)', badnodes, goodnodes)
1044 revs = candidates & revs
1045 nodes = [repo.changelog.node(i) for i in revs]
1039 1046 else:
1040 1047 nodes = [repo.lookup(b'.')]
1041 1048
@@ -784,7 +784,6 user adds irrelevant but consistent info
784 784 $ hg log -q -r 'bisect(pruned)'
785 785 0:33b1f9bc8bc5
786 786 1:4ca5088da217
787 2:051e12f87bf1
788 787 8:dab8161ac8fc
789 788 11:82ca6f06eccd
790 789 12:9f259202bbe7
General Comments 0
You need to be logged in to leave comments. Login now