Patchwork D3121: tests: show that hgweb contains hidden revisions in /filelog/ view

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 7:10 a.m.
Message ID <differential-rev-PHID-DREV-dqosr5shwjdrzho5lnpd-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30347/
State Superseded
Headers show

Comments

phabricator - April 5, 2018, 7:10 a.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Note that these entries contain the summary line of the hidden commit,
  which is a bit a privacy issue to display. Also note that the links
  from the entries take you to a page that says:
  
    An error occurred while processing your request:
    
    filtered revision '2d32257e1109' (not in 'served' subset)

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-obsolete.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -894,6 +894,69 @@ 
   $ get-with-headers.py --headeronly localhost:$HGPORT 'log/'`hg log -r . -T "{node}"`/'babar'
   200 Script output follows
 
+check filelog view for hidden commits (obsolete ones are hidden here)
+
+  $ get-with-headers.py localhost:$HGPORT 'log/'`hg log -r . -T "{node}"`/'babar' | grep obsolete
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+     <span class="phase">draft</span> <span class="obsolete">obsolete</span> 
+
   $ get-with-headers.py --headeronly localhost:$HGPORT 'rev/68'
   200 Script output follows
   $ get-with-headers.py --headeronly localhost:$HGPORT 'rev/67'