Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/filelog.py @ 4267:b11a2fb59cf5
revlog: simplify revlog version handling
- pass the default version as an attribute on the opener
- eliminate config option mess
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 22 Mar 2007 19:52:38 -0500 |
parents | 1b5c38e9d7aa |
children | 63b9d2deed48 |
line wrap: on
line diff
--- a/mercurial/filelog.py +++ b/mercurial/filelog.py @@ -9,10 +9,9 @@ from revlog import * import os class filelog(revlog): - def __init__(self, opener, path, defversion=REVLOG_DEFAULT_VERSION): + def __init__(self, opener, path): revlog.__init__(self, opener, - "/".join(("data", self.encodedir(path + ".i"))), - defversion) + "/".join(("data", self.encodedir(path + ".i")))) # This avoids a collision between a file named foo and a dir named # foo.i or foo.d