Show the patch formats in the commit view too.
Wed Sep 7 16:58:43 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Show the patch formats in the commit view too.
hunk ./darcsweb.cgi 295
- 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"
+