comparison mercurial/filelog.py @ 2470:fe1689273f84

use demandload more.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 20 Jun 2006 23:58:21 -0700
parents c9e264b115e6
children 0875cda033fd
comparison
equal deleted inserted replaced
2459:5c5277f03887 2470:fe1689273f84
3 # Copyright 2005 Matt Mackall <mpm@selenic.com> 3 # Copyright 2005 Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms 5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference. 6 # of the GNU General Public License, incorporated herein by reference.
7 7
8 import os
9 from revlog import * 8 from revlog import *
10 from demandload import * 9 from demandload import *
11 demandload(globals(), "bdiff") 10 demandload(globals(), "bdiff os")
12 11
13 class filelog(revlog): 12 class filelog(revlog):
14 def __init__(self, opener, path, defversion=REVLOG_DEFAULT_VERSION): 13 def __init__(self, opener, path, defversion=REVLOG_DEFAULT_VERSION):
15 revlog.__init__(self, opener, 14 revlog.__init__(self, opener,
16 os.path.join("data", self.encodedir(path + ".i")), 15 os.path.join("data", self.encodedir(path + ".i")),