Tue Oct 28 13:44:36 ARST 2008 Alberto Bertogli tagged 1.1 Tue Oct 28 13:43:41 ARST 2008 Alberto Bertogli * Update my email address Tue Aug 12 06:50:07 ART 2008 Alexandre Rossi * fix pygments disaligned linenos and code when using windows fonts (pygments>0.7 only) Tue Oct 14 18:18:42 ART 2008 Alberto Bertogli tagged 1.1-rc1 Tue Oct 14 18:18:29 ART 2008 Alberto Bertogli * Update HTML version number Sun Oct 5 12:53:16 ART 2008 Alberto Bertogli * Import pygments only when needed Otherwise, we pay for the pygments import (which is noticeable) on every darcsweb page view. This follows the lazy module loading that is already being done for other costly modules (i.e. 're'). Sun Oct 5 12:48:31 ART 2008 Alberto Bertogli * Ignore broken multidir directories When a multidir directory is not really a directory or a valid symlink to one, we want to skip it instead of exploding. This patch fixes that by doing a simple sanity check while processing the configured multidirs. Thanks to Ralph Giles for the report and the patch. Thu Aug 7 02:31:41 ART 2008 Alexandre Rossi * optional source headblob syntax highlighting using python-pygments Thu Aug 7 01:41:45 ART 2008 Alberto Bertogli * Handle old date formats Very old darcs commits use a different time format, that leaks out in some operations like annotate. This patch makes darcsweb able to handle it. Thanks to Simon Michael for the report and the help. Sun Aug 3 12:04:07 ART 2008 Alberto Bertogli * Fix typo in annotate output Sun Aug 3 12:03:41 ART 2008 Alberto Bertogli * Simplify annotate code A very simple change, makes the code more straightforward. Sun Aug 3 12:02:56 ART 2008 Alberto Bertogli * Fix annotate so it works with darcs 2 darcs 2 doesn't like files beginning with / as parameters for annotate. Since darcs 1 doesn't care, remove the '/' before running darcs. Sun Aug 3 12:00:34 ART 2008 Alberto Bertogli * Use _darcs/patches instead of _darcs/inventory In darcs 2, there is no _darcs/inventory, so use the patches directory to find out the last modification time of the repository. Thanks to Patrick Waugh (ptwaugh@gmail.com) for providing (and testing) this fix. Mon Apr 7 21:11:05 ART 2008 Alberto Bertogli tagged 1.0 diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2008-10-28 13:45:37.000000000 -0200 +++ new-darcsweb/darcsweb.cgi 2008-10-28 13:45:37.000000000 -0200 @@ -2,7 +2,7 @@ """ darcsweb - A web interface for darcs -Alberto Bertogli (albertito@gmail.com) +Alberto Bertogli (albertito@blitiri.com.ar) Inspired on gitweb (as of 28/Jun/2005), which is written by Kay Sievers and Christian Gierke @@ -292,6 +292,21 @@ lf.close() +def parse_darcs_time(s): + "Try to convert a darcs' time string into a Python time tuple." + try: + return time.strptime(s, "%Y%m%d%H%M%S") + except ValueError: + # very old darcs commits use a different format, for example: + # "Wed May 21 19:39:10 CEST 2003" + # we can't parse the "CEST" part reliably, so we leave it out + fmt = "%a %b %d %H:%M:%S %Y" + parts = s.split() + ns = ' '.join(parts[0:4]) + ' ' + parts[5] + return time.strptime(ns, fmt) + + + # # generic html functions # @@ -303,8 +318,8 @@ -