mercurial/manifest.py
changeset 1651 cf40d2a30fef
parent 1650 f2ebd5251e88
child 1680 c21b54f7f7b8
child 2072 74d3f5336b66
equal deleted inserted replaced
1650:f2ebd5251e88 1651:cf40d2a30fef
   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,
   111             # if this is changed to support newlines in filenames,
   112             % be sure to check the templates/ dir again (especially *-raw.tmpl)
   112             # be sure to check the templates/ dir again (especially *-raw.tmpl)
   113             text = ["%s\000%s%s\n" %
   113             text = ["%s\000%s%s\n" %
   114                             (f, hex(map[f]), flags[f] and "x" or '')
   114                             (f, hex(map[f]), flags[f] and "x" or '')
   115                             for f in files]
   115                             for f in files]
   116             self.listcache = array.array('c', "".join(text))
   116             self.listcache = array.array('c', "".join(text))
   117             cachedelta = None
   117             cachedelta = None