Patchwork D1286: repoview: consider visibility exceptions in computehidden()

login
register
mail settings
Submitter phabricator
Date Nov. 23, 2017, 1:24 a.m.
Message ID <bef027f0e540dabd16db6261ef5d1619@localhost.localdomain>
Download mbox | patch
Permalink /patch/25723/
State Not Applicable
Headers show

Comments

phabricator - Nov. 23, 2017, 1:24 a.m.
pulkit updated this revision to Diff 3785.
pulkit edited the summary of this revision.
pulkit retitled this revision from "repoview: also consider visibility exceptions in pinnedrevs" to "repoview: consider visibility exceptions in computehidden()".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1286?vs=3202&id=3785

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

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -72,6 +72,7 @@ 
     hidden = hideablerevs(repo)
     if hidden:
         hidden = set(hidden - pinnedrevs(repo))
+        hidden = hidden - repo.filtered('visible').getvisibilityexceptions()
         pfunc = repo.changelog.parentrevs
         mutablephases = (phases.draft, phases.secret)
         mutable = repo._phasecache.getrevset(repo, mutablephases)