Mon Oct 3 04:51:44 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Make shade the default annotate style.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2014-04-25 18:11:41.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2014-04-25 18:11:41.000000000 +0000
@@ -274,7 +274,7 @@
if f and h:
print """
-| <a href="%(myreponame)s;a=annotate;f=%(fname)s;h=%(hash)s">annotate</a>
+| <a href="%(myreponame)s;a=annotate_shade;f=%(fname)s;h=%(hash)s">annotate</a>
""" % {
'myreponame': config.myreponame,
'hash': h,
@@ -282,7 +282,7 @@
}
elif f:
print """
-| <a href="%(myreponame)s;a=annotate;f=%(fname)s">annotate</a>
+| <a href="%(myreponame)s;a=annotate_shade;f=%(fname)s">annotate</a>
""" % { "myreponame": config.myreponame, 'fname': f }
if f and os.path.isfile(realf):
@@ -363,7 +363,7 @@
elif f and h and action.startswith("annotate"):
# same for annotate
print """
-<a href="%(myreponame)s;a=annotate;f=%(fname)s;h=%(hash)s">normal</a>
+<a href="%(myreponame)s;a=annotate_normal;f=%(fname)s;h=%(hash)s">normal</a>
| <a href="%(myreponame)s;a=annotate_plain;f=%(fname)s;h=%(hash)s">plain</a>
| <a href="%(myreponame)s;a=annotate_shade;f=%(fname)s;h=%(hash)s">shade</a>
| <a href="%(myreponame)s;a=annotate_zebra;f=%(fname)s;h=%(hash)s">zebra</a>
@@ -1426,7 +1426,7 @@
<td class="link">
<a href="%(myreponame)s;a=filediff;h=%(hash)s;f=%(file)s">diff</a> |
<a href="%(myreponame)s;a=filehistory;f=%(file)s">history</a> |
- <a href="%(myreponame)s;a=annotate;h=%(hash)s;f=%(file)s">annotate</a>
+ <a href="%(myreponame)s;a=annotate_shade;h=%(hash)s;f=%(file)s">annotate</a>
</td>
""" % {
'myreponame': config.myreponame,
@@ -1511,7 +1511,7 @@
<td class="link">
<a href="%(myrname)s;a=filehistory;f=%(fullf)s">history</a> |
<a href="%(myrname)s;a=headblob;f=%(fullf)s">headblob</a> |
- <a href="%(myrname)s;a=annotate;f=%(fullf)s">annotate</a>
+ <a href="%(myrname)s;a=annotate_shade;f=%(fullf)s">annotate</a>
</td>
""" % {
'myrname': config.myreponame,
@@ -1880,7 +1880,7 @@
fname = filter_file(form["f"].value)
do_darcs_fileheaddiff(phash, fname)
-elif action == "annotate":
+elif action == "annotate_normal":
fname = filter_file(form["f"].value)
if form.has_key("h"):
phash = filter_hash(form["h"].value)