##// END OF EJS Templates
manifest: allow specifying the revlog filename...
Durham Goode -
r31151:6d9f8bc2 default
parent child Browse files
Show More
@@ -1132,7 +1132,12 b' class manifestrevlog(revlog.revlog):'
1132 '''A revlog that stores manifest texts. This is responsible for caching the
1132 '''A revlog that stores manifest texts. This is responsible for caching the
1133 full-text manifest contents.
1133 full-text manifest contents.
1134 '''
1134 '''
1135 def __init__(self, opener, dir='', dirlogcache=None):
1135 def __init__(self, opener, dir='', dirlogcache=None, indexfile=None):
1136 """Constructs a new manifest revlog
1137
1138 `indexfile` - used by extensions to have two manifests at once, like
1139 when transitioning between flatmanifeset and treemanifests.
1140 """
1136 # During normal operations, we expect to deal with not more than four
1141 # During normal operations, we expect to deal with not more than four
1137 # revs at a time (such as during commit --amend). When rebasing large
1142 # revs at a time (such as during commit --amend). When rebasing large
1138 # stacks of commits, the number can go up, hence the config knob below.
1143 # stacks of commits, the number can go up, hence the config knob below.
@@ -1150,12 +1155,16 b' class manifestrevlog(revlog.revlog):'
1150
1155
1151 self._fulltextcache = util.lrucachedict(cachesize)
1156 self._fulltextcache = util.lrucachedict(cachesize)
1152
1157
1153 indexfile = "00manifest.i"
1154 if dir:
1158 if dir:
1155 assert self._treeondisk, 'opts is %r' % opts
1159 assert self._treeondisk, 'opts is %r' % opts
1156 if not dir.endswith('/'):
1160 if not dir.endswith('/'):
1157 dir = dir + '/'
1161 dir = dir + '/'
1158 indexfile = "meta/" + dir + "00manifest.i"
1162
1163 if indexfile is None:
1164 indexfile = '00manifest.i'
1165 if dir:
1166 indexfile = "meta/" + dir + indexfile
1167
1159 self._dir = dir
1168 self._dir = dir
1160 # The dirlogcache is kept on the root manifest log
1169 # The dirlogcache is kept on the root manifest log
1161 if dir:
1170 if dir:
General Comments 0
You need to be logged in to leave comments. Login now