Tue Nov 1 10:19:57 UTC 2011 pinterface * Add Owner and Last Change columns to repo listing This is a little ugly due to the global config object. Boo. diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2014-09-11 07:38:45.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2014-09-11 07:38:45.000000000 +0000 @@ -2244,6 +2244,8 @@ Project Description +Owner +Last Change """ % { @@ -2268,9 +2270,14 @@ if alt: print '' else: print '' alt = not alt + try: orig_repodir = config.repodir + except: orig_repodir = None + config.repodir = c.repodir print """ %(dname)s %(desc)s +%(owner)s +%(lastchange)s summary | shortlog | log | @@ -2281,8 +2288,11 @@ 'myname': config.myname, 'dname': name, 'name': urllib.quote(name), - 'desc': shorten_str(desc, 60) + 'desc': shorten_str(desc, 60), + 'owner': escape(repo_get_owner() or ''), + 'lastchange': how_old(os.stat(c.repodir + '/_darcs/patches').st_mtime), } + config.repodir = orig_repodir print "" print_footer(put_rss = 0)