Do not hide current and bookmarked
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 07 Sep 2011 18:39:02 +0200
changeset 41 99c131e97bb3
parent 40 b9a5a596d9ef
child 42 eb6a06d7eae3
Do not hide current and bookmarked
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