Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/filelog.py @ 2222:c9e264b115e6
Use revlogng and inlined data files by default
This changes revlog specify revlogng by default. Inlined
data files are also used unless a flags option is found in the .hgrc.
Some example hgrc files:
[revlog]
# use the original revlog format
format=0
[revlog]
# use revlogng. Because no flags are included, inlined data files
# also be selected
format=1
[revlog]
# use revlogng but do not inline the data files with the index
flags=
[revlog]
# the new default
format=1
flags=inline
author | mason@suse.com |
---|---|
date | Mon, 08 May 2006 14:26:18 -0500 |
parents | 74d3f5336b66 |
children | fe1689273f84 |
comparison
equal
deleted
inserted
replaced
2221:05b6c13f43c6 | 2222:c9e264b115e6 |
---|---|
9 from revlog import * | 9 from revlog import * |
10 from demandload import * | 10 from demandload import * |
11 demandload(globals(), "bdiff") | 11 demandload(globals(), "bdiff") |
12 | 12 |
13 class filelog(revlog): | 13 class filelog(revlog): |
14 def __init__(self, opener, path, defversion=0): | 14 def __init__(self, opener, path, defversion=REVLOG_DEFAULT_VERSION): |
15 revlog.__init__(self, opener, | 15 revlog.__init__(self, opener, |
16 os.path.join("data", self.encodedir(path + ".i")), | 16 os.path.join("data", self.encodedir(path + ".i")), |
17 os.path.join("data", self.encodedir(path + ".d")), | 17 os.path.join("data", self.encodedir(path + ".d")), |
18 defversion) | 18 defversion) |
19 | 19 |