Mercurial > public > mercurial-scm > hg
comparison mercurial/manifest.py @ 1650:f2ebd5251e88
changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
author | Peter van Dijk <peter@dataloss.nl> |
---|---|
date | Sun, 29 Jan 2006 00:18:52 +0100 |
parents | bf4e7ef08741 |
children | cf40d2a30fef |
comparison
equal
deleted
inserted
replaced
1649:beb7da710c8a | 1650:f2ebd5251e88 |
---|---|
106 if not changed or not self.listcache or not p1 or \ | 106 if not changed or not self.listcache or not p1 or \ |
107 self.mapcache[0] != p1: | 107 self.mapcache[0] != p1: |
108 files = map.keys() | 108 files = map.keys() |
109 files.sort() | 109 files.sort() |
110 | 110 |
111 % if this is changed to support newlines in filenames, | |
112 % be sure to check the templates/ dir again (especially *-raw.tmpl) | |
111 text = ["%s\000%s%s\n" % | 113 text = ["%s\000%s%s\n" % |
112 (f, hex(map[f]), flags[f] and "x" or '') | 114 (f, hex(map[f]), flags[f] and "x" or '') |
113 for f in files] | 115 for f in files] |
114 self.listcache = array.array('c', "".join(text)) | 116 self.listcache = array.array('c', "".join(text)) |
115 cachedelta = None | 117 cachedelta = None |