Wed Nov 9 00:30:02 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Don't show the owner if there is none
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2013-11-20 00:50:48.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2013-11-20 00:50:48.000000000 +0000
@@ -389,7 +389,7 @@
fd = open(config.repodir + '/_darcs/prefs/author')
author = fd.readlines()[0].strip()
except:
- author = "Unknown owner <unknown@example.org>"
+ author = None
return author
def run_darcs(params):
@@ -1116,7 +1116,8 @@
print '<div class="title"> </div>'
print '<table cellspacing="0">'
print ' <tr><td>description</td><td>%s</td></tr>' % config.repodesc
- print ' <tr><td>owner</td><td>%s</td></tr>' % escape(owner)
+ if owner:
+ print ' <tr><td>owner</td><td>%s</td></tr>' % escape(owner)
if len(ps) > 0:
print ' <tr><td>last change</td><td>%s</td></tr>' % \
ps[0].local_date_str