Support replaces.
Wed Sep 7 16:59:52 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Support replaces.
{
hunk ./darcsweb.cgi 384
+ self.replaces = {}
hunk ./darcsweb.cgi 489
+ elif name == 'replaced_tokens':
+ if self.cur_val:
+ self.cur_file = fixu8(self.cur_val.strip())
+ cf = self.cur_file
+ p = self.db[self.current]
+ if not p.replaces.has_key(cf):
+ p.replaces[cf] = 0
+ p.replaces[cf] = int(attrs.get('num', None))
hunk ./darcsweb.cgi 513
+ if name == 'replaced_tokens':
+ return
hunk ./darcsweb.cgi 1093
- p.diradds + p.dirremoves
+ p.diradds + p.dirremoves + p.replaces.keys()
hunk ./darcsweb.cgi 1145
+ print '</span></td>'
+ elif p.replaces.has_key(f):
+ print '<td><span style="color:#800000">',
+ print '[replaced %d tokens]' % p.replaces[f],
}