D1583: repoview: consider visibilityexceptions while considering filterrevs

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Dec 4 14:16:48 UTC 2017


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1583

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -71,6 +71,8 @@
         pfunc = repo.changelog.parentrevs
         mutablephases = (phases.draft, phases.secret)
         mutable = repo._phasecache.getrevset(repo, mutablephases)
+        # consider visibility exceptions
+        hidden = hidden - repo.filtered(filtername).getvisibilityexceptions()
 
         visible = mutable - hidden
         _revealancestors(pfunc, hidden, visible)



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list