Submitter | via Mercurial-devel |
---|---|
Date | Jan. 4, 2017, 6:52 p.m. |
Message ID | <acf0037a9a5bb14603bb.1483555977@martinvonz.mtv.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/18094/ |
State | Accepted |
Headers | show |
Comments
Patch
diff -r 0064a1eb28e2 -r acf0037a9a5b mercurial/repair.py --- a/mercurial/repair.py Mon Dec 26 00:02:42 2016 +0000 +++ b/mercurial/repair.py Wed Jan 04 10:07:12 2017 -0800 @@ -99,9 +99,9 @@ # (head = revision in the set that has no descendant in the set; # base = revision in the set that has no ancestor in the set) tostrip = set(striplist) - for rev in striplist: - for desc in cl.descendants([rev]): - tostrip.add(desc) + for r in cl.revs(start=striprev + 1): + if any(p in tostrip for p in cl.parentrevs(r)): + tostrip.add(r) files = _collectfiles(repo, striprev) saverevs = _collectbrokencsets(repo, files, striprev)