Patchwork [5,of,7,V2] repoview: add _gethiddenblockers method

login
register
mail settings
Submitter Sean Farley
Date March 28, 2014, 5:53 p.m.
Message ID <fa7dce37aac4aaed22ba.1396029199@laptop.local>
Download mbox | patch
Permalink /patch/4105/
State Superseded
Commit b0822c23e80a0460fddd278a99a5593a7984fae3
Headers show

Comments

Sean Farley - March 28, 2014, 5:53 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1396027877 18000
#      Fri Mar 28 12:31:17 2014 -0500
# Node ID fa7dce37aac4aaed22ba58a5a86ed886ed5e3a93
# Parent  2b99277c3954019bc2afdb2940834b968e8137e5
repoview: add _gethiddenblockers method

This is a standalone function that will provide the ability for extensions to
wrap.

Patch

diff --git a/mercurial/repoview.py b/mercurial/repoview.py
--- a/mercurial/repoview.py
+++ b/mercurial/repoview.py
@@ -16,10 +16,16 @@  def hideablerevs(repo):
     """Revisions candidates to be hidden
 
     This is a standalone function to help extensions to wrap it."""
     return obsolete.getrevs(repo, 'obsolete')
 
+def _gethiddenblockers(repo):
+    """Get revisions that will block hidden changesets from being filtered
+
+    This is a standalone function to help extensions to wrap it."""
+    pass
+
 def computehidden(repo):
     """compute the set of hidden revision to filter
 
     During most operation hidden should be filtered."""
     assert not repo.changelog.filteredrevs