comparison mercurial/ui.py @ 2072:74d3f5336b66

Implement revlogng. revlogng results in smaller indexes, can address larger data files, and supports flags and version numbers. By default the original revlog format is used. To use the new format, use the following .hgrc field: [revlog] # format choices are 0 (classic revlog format) and 1 revlogng format=1
author mason@suse.com
date Tue, 04 Apr 2006 16:38:43 -0400
parents e3280d350792
children d0c02b4dce9a
comparison
equal deleted inserted replaced
2042:a514c7509fa9 2072:74d3f5336b66
27 27
28 self.updateopts(verbose, debug, quiet, interactive) 28 self.updateopts(verbose, debug, quiet, interactive)
29 self.diffcache = None 29 self.diffcache = None
30 self.header = [] 30 self.header = []
31 self.prev_header = [] 31 self.prev_header = []
32 self.revlogopts = self.configrevlog()
32 else: 33 else:
33 # parentui may point to an ui object which is already a child 34 # parentui may point to an ui object which is already a child
34 self.parentui = parentui.parentui or parentui 35 self.parentui = parentui.parentui or parentui
35 parent_cdata = self.parentui.cdata 36 parent_cdata = self.parentui.cdata
36 self.cdata = ConfigParser.SafeConfigParser(parent_cdata.defaults()) 37 self.cdata = ConfigParser.SafeConfigParser(parent_cdata.defaults())
132 if key == 'ignore' or key.startswith('ignore.'): 133 if key == 'ignore' or key.startswith('ignore.'):
133 path = os.path.expanduser(value) 134 path = os.path.expanduser(value)
134 result.append(path) 135 result.append(path)
135 return result 136 return result
136 137
138 def configrevlog(self):
139 ret = {}
140 for x in self.configitems("revlog"):
141 k = x[0].lower()
142 ret[k] = x[1]
143 return ret
137 def diffopts(self): 144 def diffopts(self):
138 if self.diffcache: 145 if self.diffcache:
139 return self.diffcache 146 return self.diffcache
140 ret = { 'showfunc' : True, 'ignorews' : False} 147 ret = { 'showfunc' : True, 'ignorews' : False}
141 for x in self.configitems("diff"): 148 for x in self.configitems("diff"):