Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb.py @ 542:eda4c32c167a
Merge with upstream
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Merge with upstream
manifest hash: 78c3657547aa957be685a4d54462570eb4b5e181
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCxFpbW7P1GVgWeRoRAqWGAKCkLQPbZpdLCBWKD+pecMtTRiu9EACfbuz4
dtHuM/86dYZ6CRqQHohJVjk=
=v+Vv
-----END PGP SIGNATURE-----
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 30 Jun 2005 21:47:23 +0100 |
parents | 03f27b1381f9 ab0d1bfeee7c |
children | 4fc63e22b1fe |
comparison
equal
deleted
inserted
replaced
541:abaea35387a8 | 542:eda4c32c167a |
---|---|
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 |