tests/test-propertycache.py
changeset 21024 7731a2281cf0
parent 19951 d51c4d85ec23
child 28755 84673a7c54af
equal deleted inserted replaced
21023:57b50abe2b24 21024:7731a2281cf0
    37 #plug them on repo
    37 #plug them on repo
    38 mercurial.localrepo.localrepository.testcachedfoobar = testcachedfoobar
    38 mercurial.localrepo.localrepository.testcachedfoobar = testcachedfoobar
    39 mercurial.localrepo.localrepository.testcachedunfifoobar = testcachedunfifoobar
    39 mercurial.localrepo.localrepository.testcachedunfifoobar = testcachedunfifoobar
    40 
    40 
    41 
    41 
    42 # create an empty repo. and instanciate it. It is important to run
    42 # Create an empty repo and instantiate it. It is important to run
    43 # those test on the real object to detect regression.
    43 # these tests on the real object to detect regression.
    44 repopath = os.path.join(os.environ['TESTTMP'], 'repo')
    44 repopath = os.path.join(os.environ['TESTTMP'], 'repo')
    45 assert subprocess.call(['hg', 'init', repopath]) == 0
    45 assert subprocess.call(['hg', 'init', repopath]) == 0
    46 ui = uimod.ui()
    46 ui = uimod.ui()
    47 repo = mercurial.hg.repository(ui, path=repopath).unfiltered()
    47 repo = mercurial.hg.repository(ui, path=repopath).unfiltered()
    48 
    48