[PATCH 0/5]: cleaning the template parent management in hgweb

Goffredo Baroncelli kreijack at libero.it
Sat Jul 2 10:09:43 CDT 2005


Hi,

the template pages contain two entry named #parent1# and #parent2#; this is no good
because with the template system implemented in hgweb both the functions 
can be replaced with only one entry named "#parent#".
The code in hgweb will replace this tag with the appropriate number of parents ( one, two...
or more if and when will be used ).

The first two patch perform this change in two step: 
1) change the code to manage only one entry ( #parent1# )
2) remove any reference to #parent2#, and change both the code and the templates to
   rename #parent1# in #parent2#

the last three patchs are clean-up.


The patch are five

- patch #1:
- clean the code in order to ignore #parent2# and use only #parent1#

- patch #2
- clean the template page: replace #parent2# and #parent1# with #parent#; adjust also
the code

- patch #3
the filediff template use the old style p1/p2 and p1rev/p2rev inteface; the patch
removes this old stuff, and update the code to the new style

- patch 4#
remove everywhere any reference to p1/p2/p1rev/p2rev which is not used in hgweb

- patch #5
remove the unused function hgweb.parent()


-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87  87C0 BB86 505C 6B2A CFF9



More information about the Mercurial mailing list