Tue Nov 1 09:54:21 UTC 2011 pinterface * Skip comments and blank lines in the author file diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2015-02-18 15:26:18.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2015-02-18 15:26:18.000000000 +0000 @@ -631,10 +631,12 @@ def repo_get_owner(): try: fd = open(config.repodir + '/_darcs/prefs/author') - author = fd.readlines()[0].strip() + for line in fd: + line = line.strip() + if line != "" and line[0] != "#": + return line.strip() except: - author = None - return author + return None def run_darcs(params): """Runs darcs on the repodir with the given params, return a file