# HG changeset patch # User mpm@selenic.com # Date 1120336485 28800 # Node ID c7364b985ca2309e17ff0efb121d2ae6cf0e044e # Parent 2ee819a950aa64315b57f19878fdb0a89cab22ba [PATCH 3/5]: cleaning the template parent management in hgweb -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH 3/5]: cleaning the template parent management in hgweb From: Goffredo Baroncelli 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 manifest hash: 29536b6ee71f03a48bceb7336040070ecd0d2b9e -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxvplywK+sNU5EO8RApW4AKCrTLHofr8jELtvNRpoNJHc0sjEfgCfaY2q /H96T6BMMXA4VLFVxzOBHCo= =u4El -----END PGP SIGNATURE----- diff -r 2ee819a950aa -r c7364b985ca2 mercurial/hgweb.py --- a/mercurial/hgweb.py Sat Jul 02 12:31:32 2005 -0800 +++ b/mercurial/hgweb.py Sat Jul 02 12:34:45 2005 -0800 @@ -630,7 +630,8 @@ filenode = hex(mf.get(file, nullid)), node = changeset, rev = self.repo.changelog.rev(n), - p1 = hex(p1), + parent = self.parents("filediffparent", + cl.parents(n), cl.rev), p1rev = self.repo.changelog.rev(p1), diff = diff) diff -r 2ee819a950aa -r c7364b985ca2 templates/filediff.tmpl --- a/templates/filediff.tmpl Sat Jul 02 12:31:32 2005 -0800 +++ b/templates/filediff.tmpl Sat Jul 02 12:34:45 2005 -0800 @@ -19,9 +19,7 @@ revision #rev#: #node|short# - - parent #p1rev#: - #p1|short# +#parent#
diff -r 2ee819a950aa -r c7364b985ca2 templates/map
--- a/templates/map	Sat Jul 02 12:31:32 2005 -0800
+++ b/templates/map	Sat Jul 02 12:34:45 2005 -0800
@@ -32,3 +32,4 @@
 diffblock = "
#lines#
" changelogtag = "tag: #tag#" changesettag = "tag: #tag#" +filediffparent = "parent #rev#:#node|short#"