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

login
register
mail settings
Submitter phabricator
Date Nov. 29, 2017, 2:06 a.m.
Message ID <84d8ca0724eff8bc13063f9051fc5bdd@localhost.localdomain>
Download mbox | patch
Permalink /patch/25795/
State Not Applicable
Headers show

Comments

phabricator - Nov. 29, 2017, 2:06 a.m.
pulkit updated this revision to Diff 3957.
pulkit retitled this revision from "repoview: consider visibility exceptions in computehidden()" to "repoview: consider visibility exceptions in filterrevs()".

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/repoview.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -148,7 +148,7 @@ 
     if filtername not in repo.filteredrevcache:
         func = filtertable[filtername]
         repo.filteredrevcache[filtername] = func(repo.unfiltered())
-    return repo.filteredrevcache[filtername]
+    return repo.filteredrevcache[filtername] - repo.getvisibilityexceptions()
 
 class repoview(object):
     """Provide a read/write view of a repo through a filtered changelog