Sun Mar 28 16:37:55 UTC 2010 Simon Michael * hide darcs' Ignore-this: metadata in log view diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2015-09-30 08:14:59.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2015-09-30 08:14:59.000000000 +0000 @@ -190,6 +190,10 @@ return s +def strip_ignore_this(s): + """Strip out darcs' Ignore-this: metadata if present.""" + import re + return re.sub(r'^Ignore-this:[^\n]*\n?','',s) def highlight(s, l): "Highlights appearences of s in l" @@ -841,7 +845,7 @@ if p.inverted: p.name = 'UNDO: ' + p.name elif name == 'comment': - self.db[self.current].comment = fixu8(self.cur_val) + self.db[self.current].comment = fixu8(strip_ignore_this(self.cur_val)) elif name == 'add_file': scv = fixu8(self.cur_val.strip()) self.db[self.current].adds.append(scv)