#
#
# patch "common.py"
# from [f233ee82566d9d1a2dbe414998f9fef6b46c17b2]
# to [87a1283680b253e297af32da14119a2546730fda]
#
# patch "fileinbranch.psp"
# from [66e47a474cb46610adc8117eaf45f7fa64d9e88b]
# to [1d3a5d5742dacc82879b558f8e785915653839c0]
#
# patch "manifest.psp"
# from [89b19f937c39d159920708dc2cc8c2a80dc2cbec]
# to [d6cec402657f3518eb8017a54a22428644dcc233]
#
# patch "revision.psp"
# from [9cb020164c77e5a2a33a798d418690d072bc1c3c]
# to [54379dc8fb3e0fd02a084fcd92bdb0f41a85de61]
#
# patch "viewmtn.css"
# from [8f34d3d1b7b375830bfbf12ae362a575b2a79385]
# to [a1b37d9cb0fa5fddaf650dccc25af95bd9597a3f]
#
============================================================
--- common.py f233ee82566d9d1a2dbe414998f9fef6b46c17b2
+++ common.py 87a1283680b253e297af32da14119a2546730fda
@@ -39,7 +39,7 @@
else: rv += "diff"
rv += ''
return rv
- elif link_type == "file":
+ elif link_type == "download":
if type(link_to) == type([]):
rv = '' % (urllib.quote(link_to[0]), urllib.quote(link_to[1]))
link_id = link_to[0]
@@ -49,6 +49,12 @@
if description != None: rv += description + ""
else: rv = "[" + rv + hq(link_id[:8]) + ".." + "]"
return rv
+ elif link_type == "file":
+ revision_id, path = link_to
+ rv = '' % (urllib.quote(revision_id), urllib.quote(path))
+ if description != None: rv += description + ""
+ else: rv = "[" + rv + hq(path + '@' + revision_id[:8]) + ".." + "]"
+ return rv
elif link_type == "branch":
rv = '' % (urllib.quote(link_to))
if description != None: rv += description
============================================================
--- fileinbranch.psp 66e47a474cb46610adc8117eaf45f7fa64d9e88b
+++ fileinbranch.psp 1d3a5d5742dacc82879b558f8e785915653839c0
@@ -60,7 +60,7 @@
<%
for id in file_version.keys():
- req.write('Head revision View file ' % (link("revision", id), link("file", [file_version[id], path], "view file")))
+ req.write('%s %s ' % (link("revision", id), link("download", [file_version[id], path], "view file")))
%>
============================================================
--- manifest.psp 89b19f937c39d159920708dc2cc8c2a80dc2cbec
+++ manifest.psp d6cec402657f3518eb8017a54a22428644dcc233
@@ -155,13 +155,13 @@
icon_uri = get_icon(file)
rev = file_to_rev.get(file, None)
if not rev:
- tr.write('%s %s