Wed Sep 7 16:58:43 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Show the patch formats in the commit view too.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2015-10-09 17:37:06.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2015-10-09 17:37:06.000000000 +0000
@@ -292,8 +292,15 @@
pos = action.find('_')
fmt = action[:pos]
efaction = action[pos + 1:]
- if efaction in ("commitdiff", "filediff", "headdiff", "headfilediff"):
- # show the alternative patch formats
+ if efaction in ("commit", "commitdiff", "filediff", "headdiff",
+ "headfilediff"):
+
+ # in order to show the small bar in the commit page too, we
+ # accept it here and change efaction to commitdiff, because
+ # that's what we're really intrested in
+ if efaction == "commit":
+ efaction = "commitdiff"
+
params = 'h=%s;' % h
if f:
params += 'f=%s;' % f