New patches: [new optional config varuable: author_links VMiklos **20070201173050 it is disabled by default and an example for cia is included ] { hunk ./config.py.sample 77 + + # If you want to generate links from patch author names, define the url + # here. Example for CIA: + #author_links = "http://cia.navi.cx/stats/author/%(author)s" + hunk ./darcsweb.cgi 487 +def gen_authorlink(author, shortauthor=None): + if not config.author_links: + if shortauthor: + return shortauthor + else: + return author + if not shortauthor: + shortauthor = author + return '%s' % shortauthor hunk ./darcsweb.cgi 1149 - 'author': shorten_str(p.shortauthor, 26), + 'author': gen_authorlink(p.author, shorten_str(p.shortauthor, 26)), hunk ./darcsweb.cgi 1209 - 'author': p.shortauthor, + 'author': gen_authorlink(p.author, p.shortauthor), hunk ./darcsweb.cgi 1619 - 'author': p.author, + 'author': gen_authorlink(p.author), hunk ./darcsweb.cgi 2082 - 'author': shorten_str(p.shortauthor, 26), + 'author': gen_authorlink(p.author, shorten_str(p.shortauthor, 26)), hunk ./darcsweb.cgi 2370 + if "author_links" in dir(base): + config.author_links = base.author_links + else: + config.author_links = None } Context: [Check python version before running darcsweb. Alberto Bertogli **20070124233807 This patch adds a check to verify that the python version is >= 2.3, so the user doesn't get strange errors when using older python interpreters. Thanks to Mark Stosberg for the suggestion. ] [The DARCS_DONT_ESCAPE_8BIT environment variable is now set using os.environ before running darcs and restored to its original state after running darcs - makes darcsweb work on Windows jonathan.buchanan@gmail.com**20070117230212] [Add support for regexp-based replacing. Alberto Bertogli **20061225221820 Add an option to replace text in the summary, using regexps. This allows you to configure darcsweb to automatically detect and put links to other commits or bug numbers. This patch is heavily based on the one written by Kirill Smelkov (kirr@mns.spb.ru). ] [string.join is deprecated Kirill Smelkov **20061130093741] [Change my email address. Alberto Bertogli **20061225214336] [TAG 0.16 Alberto Bertogli **20061010030421] Patch bundle hash: 605e2e4c90a4c0aa4315e83a04debc2a1fa41632