mercurial/repoview.py
changeset 28780 faff8c2b5ee3
parent 28265 332926212ef8
child 29040 a4dc5fe7bf54
--- a/mercurial/repoview.py	Sun Apr 03 19:47:29 2016 +0900
+++ b/mercurial/repoview.py	Sat Apr 02 15:56:47 2016 -0700
@@ -22,9 +22,14 @@
 )
 
 def hideablerevs(repo):
-    """Revisions candidates to be hidden
+    """Revision candidates to be hidden
+
+    This is a standalone function to allow extensions to wrap it.
 
-    This is a standalone function to help extensions to wrap it."""
+    Because we use the set of immutable changesets as a fallback subset in
+    branchmap (see mercurial.branchmap.subsettable), you cannot set "public"
+    changesets as "hideable". Doing so would break multiple code assertions and
+    lead to crashes."""
     return obsolete.getrevs(repo, 'obsolete')
 
 def _getstatichidden(repo):