# HG changeset patch # User Pierre-Yves David # Date 1315413542 -7200 # Node ID 99c131e97bb388f4b3694fc89641fbd599988ac6 # Parent b9a5a596d9eff6db97c5bb82af7d7f741f89d26e Do not hide current and bookmarked diff -r b9a5a596d9ef -r 99c131e97bb3 obsolete.py --- a/obsolete.py Wed Sep 07 12:42:26 2011 +0200 +++ b/obsolete.py Wed Sep 07 18:39:02 2011 +0200 @@ -28,7 +28,7 @@ # hack to fill hiddenrevs # compute hidden (XXX should move elsewhere) if not getattr(ctx._repo.changelog, 'hiddeninit', False): - basicquery = 'obsolete() - (ancestors(not obsolete()))' + basicquery = 'obsolete() - (ancestors(not obsolete() or . or bookmark()))' for rev in scmutil.revrange(ctx._repo, [basicquery]): ctx._repo.changelog.hiddenrevs.add(rev) ctx._repo.changelog.hiddeninit = True