Mercurial > hg-stable
diff mercurial/revlog.py @ 4257:1b5c38e9d7aa
revlog: don't pass datafile as an argument
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 22 Mar 2007 19:12:03 -0500 |
parents | 2a8b6d78d7ee |
children | b11a2fb59cf5 |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Mar 20 22:21:05 2007 -0300 +++ b/mercurial/revlog.py Thu Mar 22 19:12:03 2007 -0500 @@ -311,8 +311,7 @@ remove data, and can use some simple techniques to avoid the need for locking while reading. """ - def __init__(self, opener, indexfile, datafile, - defversion=REVLOG_DEFAULT_VERSION): + def __init__(self, opener, indexfile, defversion=REVLOG_DEFAULT_VERSION): """ create a revlog object @@ -320,7 +319,7 @@ and can be used to implement COW semantics or the like. """ self.indexfile = indexfile - self.datafile = datafile + self.datafile = indexfile[:-2] + ".d" self.opener = opener self.indexstat = None