##// END OF EJS Templates
changelog: make sure datafile is 00changelog.d (API)...
Jun Wu -
r32307:3caec778 default
parent child Browse files
Show More
@@ -273,7 +273,9 b' class changelog(revlog.revlog):'
273 273 else:
274 274 indexfile = '00changelog.i'
275 275
276 revlog.revlog.__init__(self, opener, indexfile, checkambig=True)
276 datafile = '00changelog.d'
277 revlog.revlog.__init__(self, opener, indexfile, datafile=datafile,
278 checkambig=True)
277 279
278 280 if self._initempty:
279 281 # changelogs don't benefit from generaldelta
@@ -252,7 +252,7 b' class revlog(object):'
252 252 If checkambig, indexfile is opened with checkambig=True at
253 253 writing, to avoid file stat ambiguity.
254 254 """
255 def __init__(self, opener, indexfile, checkambig=False):
255 def __init__(self, opener, indexfile, datafile=None, checkambig=False):
256 256 """
257 257 create a revlog object
258 258
@@ -260,7 +260,7 b' class revlog(object):'
260 260 and can be used to implement COW semantics or the like.
261 261 """
262 262 self.indexfile = indexfile
263 self.datafile = indexfile[:-2] + ".d"
263 self.datafile = datafile or (indexfile[:-2] + ".d")
264 264 self.opener = opener
265 265 # When True, indexfile is opened with checkambig=True at writing, to
266 266 # avoid file stat ambiguity.
General Comments 0
You need to be logged in to leave comments. Login now