comparison 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
comparison
equal deleted inserted replaced
17301:2e8342aeab49 17302:5c64ce6168da
640 <span class="legendinfo delete">deleted</span> 640 <span class="legendinfo delete">deleted</span>
641 <span class="legendinfo insert">inserted</span> 641 <span class="legendinfo insert">inserted</span>
642 <span class="legendinfo replace">replaced</span> 642 <span class="legendinfo replace">replaced</span>
643 </div> 643 </div>
644 644
645
646 <table class="bigtable"> 645 <table class="bigtable">
647 <thead class="header"> 646 <thead class="header">
648 <tr> 647 <tr>
649 <th>-1:000000000000</th> 648 <th>-1:000000000000</th>
650 <th>0:b789fdd96dc2</th> 649 <th>0:b789fdd96dc2</th>
651 </tr> 650 </tr>
652 </thead> 651 </thead>
653 652
654 <tbody class="block"> 653 <tbody class="block">
655 654
656 <tr> 655 <tr>
657 <td class="source insert"><a href="#r1" id="r1"> </a> </td> 656 <td class="source insert"><a href="#r1" id="r1"> </a> </td>
658 <td class="source insert"><a href="#r1" id="r1"> 1</a> a</td> 657 <td class="source insert"><a href="#r1" id="r1"> 1</a> a</td>
763 <span class="legendinfo delete">deleted</span> 762 <span class="legendinfo delete">deleted</span>
764 <span class="legendinfo insert">inserted</span> 763 <span class="legendinfo insert">inserted</span>
765 <span class="legendinfo replace">replaced</span> 764 <span class="legendinfo replace">replaced</span>
766 </div> 765 </div>
767 766
768
769 <table class="bigtable"> 767 <table class="bigtable">
770 <thead class="header"> 768 <thead class="header">
771 <tr> 769 <tr>
772 <th>0:b789fdd96dc2</th> 770 <th>0:b789fdd96dc2</th>
773 <th>1:a80d06849b33</th> 771 <th>1:a80d06849b33</th>
774 </tr> 772 </tr>
775 </thead> 773 </thead>
776 774
777 <tbody class="block"> 775 <tbody class="block">
778 776
779 <tr> 777 <tr>
780 <td class="source equal"><a href="#l1r1" id="l1r1"> 1</a> a</td> 778 <td class="source equal"><a href="#l1r1" id="l1r1"> 1</a> a</td>
781 <td class="source equal"><a href="#l1r1" id="l1r1"> 1</a> a</td> 779 <td class="source equal"><a href="#l1r1" id="l1r1"> 1</a> a</td>
888 <span class="legendinfo delete">deleted</span> 886 <span class="legendinfo delete">deleted</span>
889 <span class="legendinfo insert">inserted</span> 887 <span class="legendinfo insert">inserted</span>
890 <span class="legendinfo replace">replaced</span> 888 <span class="legendinfo replace">replaced</span>
891 </div> 889 </div>
892 890
893
894 <table class="bigtable"> 891 <table class="bigtable">
895 <thead class="header"> 892 <thead class="header">
896 <tr> 893 <tr>
897 <th>1:a80d06849b33</th> 894 <th>1:a80d06849b33</th>
898 <th>-1:000000000000</th> 895 <th>-1:000000000000</th>
899 </tr> 896 </tr>
900 </thead> 897 </thead>
901 898
902 <tbody class="block"> 899 <tbody class="block">
903 900
904 <tr> 901 <tr>
905 <td class="source delete"><a href="#l1" id="l1"> 1</a> a</td> 902 <td class="source delete"><a href="#l1" id="l1"> 1</a> a</td>
906 <td class="source delete"><a href="#l1" id="l1"> </a> </td> 903 <td class="source delete"><a href="#l1" id="l1"> </a> </td>