equal
deleted
inserted
replaced
41 |
41 |
42 def nl2br(text): |
42 def nl2br(text): |
43 return text.replace('\n', '<br/>\n') |
43 return text.replace('\n', '<br/>\n') |
44 |
44 |
45 def obfuscate(text): |
45 def obfuscate(text): |
46 return ''.join([ '&#%d' % ord(c) for c in text ]) |
46 return ''.join([ '&#%d;' % ord(c) for c in text ]) |
47 |
47 |
48 def up(p): |
48 def up(p): |
49 if p[0] != "/": p = "/" + p |
49 if p[0] != "/": p = "/" + p |
50 if p[-1] == "/": p = p[:-1] |
50 if p[-1] == "/": p = p[:-1] |
51 up = os.path.dirname(p) |
51 up = os.path.dirname(p) |
430 cl = self.repo.changelog.read(cnode) |
430 cl = self.repo.changelog.read(cnode) |
431 name = cl[1] |
431 name = cl[1] |
432 f = name.find('@') |
432 f = name.find('@') |
433 if f >= 0: |
433 if f >= 0: |
434 name = name[:f] |
434 name = name[:f] |
|
435 f = name.find('<') |
|
436 if f >= 0: |
|
437 name = name[f+1:] |
435 bcache[r] = name |
438 bcache[r] = name |
436 |
439 |
437 if last != cnode: |
440 if last != cnode: |
438 parity = 1 - parity |
441 parity = 1 - parity |
439 last = cnode |
442 last = cnode |