Mercurial > public > mercurial-scm > hg
diff tests/test-hgweb-diffs.t @ 17302:5c64ce6168da stable
hgweb: fixes traceback for invalid files by removing top-level template
The top-level 'comparison' template was not really needed, and it also caused a
traceback to be shown for inexistent files (as reported by Ross Lagerwall).
Getting rid of it makes the overall templating structure simpler and causes
invalid files to be handled nicely.
author | wujek srujek <wujek.srujek@googlemail.com> |
---|---|
date | Tue, 31 Jul 2012 14:14:15 +0200 |
parents | 1ae119269ddc |
children | 06217d3cf8d9 |
line wrap: on
line diff
--- a/tests/test-hgweb-diffs.t Mon Jul 30 22:33:45 2012 -0500 +++ b/tests/test-hgweb-diffs.t Tue Jul 31 14:14:15 2012 +0200 @@ -642,15 +642,14 @@ <span class="legendinfo replace">replaced</span> </div> - <table class="bigtable"> - <thead class="header"> - <tr> - <th>-1:000000000000</th> - <th>0:b789fdd96dc2</th> - </tr> - </thead> - + <thead class="header"> + <tr> + <th>-1:000000000000</th> + <th>0:b789fdd96dc2</th> + </tr> + </thead> + <tbody class="block"> <tr> @@ -765,15 +764,14 @@ <span class="legendinfo replace">replaced</span> </div> - <table class="bigtable"> - <thead class="header"> - <tr> - <th>0:b789fdd96dc2</th> - <th>1:a80d06849b33</th> - </tr> - </thead> - + <thead class="header"> + <tr> + <th>0:b789fdd96dc2</th> + <th>1:a80d06849b33</th> + </tr> + </thead> + <tbody class="block"> <tr> @@ -890,15 +888,14 @@ <span class="legendinfo replace">replaced</span> </div> - <table class="bigtable"> - <thead class="header"> - <tr> - <th>1:a80d06849b33</th> - <th>-1:000000000000</th> - </tr> - </thead> - + <thead class="header"> + <tr> + <th>1:a80d06849b33</th> + <th>-1:000000000000</th> + </tr> + </thead> + <tbody class="block"> <tr>